apply plugin: 'java-library' apply plugin: 'kotlin' sourceCompatibility = "1.7" targetCompatibility = "1.7" compileKotlin { kotlinOptions.jvmTarget = "1.6" } compileTestKotlin { kotlinOptions.jvmTarget = "1.8" } dependencies { api "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" api "net.dankito.utils:java-utils:$javaUtilsVersion" implementation "net.dankito.search:lucene-4-utils:$luceneUtilsVersion" testImplementation "junit:junit:$junitVersion" testImplementation "org.assertj:assertj-core:$assertJVersion" testImplementation "org.mockito:mockito-core:$mockitoVersion" testImplementation "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 testImplementation "ch.qos.logback:logback-classic:$logbackVersion" testImplementation("net.dankito.utils:java-fx-utils:$javaFxUtilsVersion") { exclude group: "org.controlsfx" } testImplementation "org.apache.commons:commons-csv:1.8" }