Files
jzstd/cli/build.gradle.kts
2020-04-27 19:41:40 +01:00

49 lines
1.3 KiB
Plaintext

plugins {
id("org.jetbrains.kotlin.jvm") version "1.3.70"
application
}
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "net.woggioni"
version = "0.1"
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<Test> {
useJUnitPlatform {
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
languageVersion = "1.3"
apiVersion = "1.3"
jvmTarget = "1.8"
javaParameters = true // Useful for reflection.
}
}