51 lines
1.1 KiB
Groovy
51 lines
1.1 KiB
Groovy
import cash.z.ecc.android.Deps
|
|
|
|
plugins {
|
|
id 'maven-publish'
|
|
id 'com.jfrog.bintray'
|
|
id "org.jetbrains.kotlin.jvm"
|
|
id 'org.jetbrains.dokka' version '0.10.1'
|
|
id 'java-library'
|
|
}
|
|
|
|
apply from: "publish.gradle"
|
|
|
|
tasks {
|
|
compileKotlin {
|
|
kotlinOptions { jvmTarget = 1.8 }
|
|
sourceCompatibility = 1.8
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions { jvmTarget = 1.8 }
|
|
sourceCompatibility = 1.8
|
|
}
|
|
|
|
// Generate Kotlin/Java documentation from sources.
|
|
dokka {
|
|
outputFormat = "html"
|
|
}
|
|
}
|
|
dependencies {
|
|
implementation Deps.Kotlin.STDLIB
|
|
|
|
// Tests
|
|
testImplementation Deps.Kotest.RUNNER
|
|
testImplementation Deps.Kotest.ASSERTIONS
|
|
testImplementation Deps.Kotest.PROPERTY
|
|
testImplementation Deps.Square.MOSHI
|
|
testImplementation Deps.Square.MOSHI_KOTLIN
|
|
}
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
showExceptions = true
|
|
showStackTraces = true
|
|
exceptionFormat = "full"
|
|
events = ["failed", "skipped"]
|
|
showStandardStreams = true
|
|
}
|
|
}
|
|
|
|
sourceCompatibility = "8"
|
|
targetCompatibility = "8"
|