bf2adbf127
* Move to Maven Publish Gradle Plugin * Remove release scripts * Update release docs
52 lines
1.1 KiB
Groovy
52 lines
1.1 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'
|
|
}
|
|
|
|
dependencies {
|
|
implementation libraries.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/jacoco.gradle")
|
|
|
|
apply plugin: 'com.vanniktech.maven.publish'
|
|
|
|
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',
|
|
]
|
|
}
|
|
}
|