38baeb7c8b
* Update Kotlin, Gradle, binary-compatibility-validator, AGP, AndroidX, retrofit, okhttp, rx2. * Replace deprecated @UseExperimental with @OptIn. * Gradle 6.2.2. * Update Coroutines to 1.3.4. Fix more compiler warnings. * Update build-tools for travis.
61 lines
No EOL
1.3 KiB
Groovy
61 lines
No EOL
1.3 KiB
Groovy
buildscript {
|
|
tasks.withType(JavaCompile) {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
id 'org.jetbrains.dokka'
|
|
}
|
|
|
|
group = GROUP
|
|
version = VERSION_NAME
|
|
|
|
dependencies {
|
|
implementation libraries.kotlinStdLib
|
|
implementation project(path: ':cache')
|
|
implementation project(path: ':multicast')
|
|
implementation libraries.coroutinesCore
|
|
|
|
testImplementation libraries.mockito
|
|
testImplementation libraries.mockitoKotlin
|
|
testImplementation libraries.truth
|
|
testImplementation libraries.junit
|
|
testImplementation libraries.coroutinesTest
|
|
}
|
|
|
|
apply from: rootProject.file("gradle/maven-push.gradle")
|
|
apply from: rootProject.file("gradle/jacoco.gradle")
|
|
|
|
targetCompatibility = 1.8
|
|
sourceCompatibility = 1.8
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
freeCompilerArgs += [
|
|
'-Xopt-in=kotlin.Experimental',
|
|
]
|
|
}
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
freeCompilerArgs += [
|
|
'-Xopt-in=kotlin.RequiresOptIn',
|
|
]
|
|
}
|
|
}
|
|
|
|
|
|
dokka {
|
|
outputFormat = 'javadoc'
|
|
outputDirectory = "$buildDir/dokkaHtml"
|
|
} |