plugins { id("org.jetbrains.kotlin.jvm") version "1.4.10" application } import org.jetbrains.kotlin.gradle.tasks.KotlinCompile fun property(name : String) = project.property(name).toString() dependencies { // Align versions of all Kotlin components implementation(platform("org.jetbrains.kotlin:kotlin-bom")) // Use the Kotlin JDK 8 standard library. implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") implementation("org.apache.logging.log4j", "log4j-slf4j-impl", property("log4j.version")) implementation("org.slf4j", "slf4j-api", property("slf4j.version")) implementation("com.beust", "jcommander", property("jcommander.version")) implementation(project(":")) testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", property("junit.version")) testImplementation("org.junit.jupiter","junit-jupiter-api", property("junit.version")) testImplementation("org.junit.jupiter","junit-jupiter-params", property("junit.version")) } application { mainClassName = "net.woggioni.jzstd.Cli" } tasks.withType { useJUnitPlatform() } java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } tasks.withType().configureEach { kotlinOptions { languageVersion = "1.4" apiVersion = "1.4" jvmTarget = "1.8" javaParameters = true // Useful for reflection. } }