36 lines
1.1 KiB
Groovy
36 lines
1.1 KiB
Groovy
apply plugin: 'java-library'
|
|
apply plugin: 'kotlin'
|
|
|
|
|
|
sourceCompatibility = "1.7"
|
|
targetCompatibility = "1.7"
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.6"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.6"
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
|
|
|
|
api "net.dankito.utils:java-utils:$javaUtilsVersion"
|
|
|
|
compile "net.dankito.utils:java-utils:$javaUtilsVersion"
|
|
|
|
|
|
testCompile "junit:junit:$junitVersion"
|
|
testCompile "org.assertj:assertj-core:$assertJVersion"
|
|
|
|
testCompile "org.mockito:mockito-core:$mockitoVersion"
|
|
testCompile "com.nhaarman:mockito-kotlin:$mockitoKotlinVersion" // so that Mockito.any() doesn't return null which null-safe Kotlin parameter don't like
|
|
// for how to enable mocking final class (which is standard in Kotlin) with Mockito see https://github.com/mockito/mockito/wiki/What's-new-in-Mockito-2#mock-the-unmockable-opt-in-mocking-of-final-classesmethods
|
|
|
|
testCompile "ch.qos.logback:logback-core:$logbackVersion"
|
|
testCompile "ch.qos.logback:logback-classic:$logbackVersion"
|
|
|
|
testCompile "net.dankito.utils:java-fx-utils:$javaFxUtilsVersion"
|
|
} |