34 lines
1.0 KiB
Groovy
34 lines
1.0 KiB
Groovy
plugins {
|
|
id "org.jetbrains.kotlin.jvm"
|
|
id "net.woggioni.gradle.envelope"
|
|
}
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
import net.woggioni.gradle.envelope.EnvelopeJarTask
|
|
|
|
dependencies {
|
|
implementation group:"org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: getProperty("kotlin.version")
|
|
|
|
implementation group: "org.apache.logging.log4j", name: "log4j-slf4j-impl", version: property("log4j.version")
|
|
implementation group: "org.slf4j", name: "slf4j-api", version: property("slf4j.version")
|
|
implementation group: "com.beust", name: "jcommander", version: property("jcommander.version")
|
|
implementation rootProject
|
|
}
|
|
|
|
Provider<EnvelopeJarTask> envelopeJarTaskProvider = tasks.named('envelopeJar', EnvelopeJarTask.class) {
|
|
mainClass = 'net.woggioni.jzstd.Cli'
|
|
}
|
|
|
|
tasks.named('envelopeRun', JavaExec) {
|
|
args = ['--help']
|
|
}
|
|
|
|
tasks.withType(KotlinCompile.class).configureEach {
|
|
kotlinOptions {
|
|
languageVersion = "1.6"
|
|
apiVersion = "1.6"
|
|
jvmTarget = "11"
|
|
javaParameters = true
|
|
}
|
|
}
|