34 lines
812 B
Groovy
34 lines
812 B
Groovy
plugins {
|
|
alias catalog.plugins.kotlin
|
|
alias catalog.plugins.envelope
|
|
}
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
import net.woggioni.gradle.envelope.EnvelopeJarTask
|
|
|
|
dependencies {
|
|
implementation catalog.kotlin.stdlib.jdk8
|
|
|
|
implementation catalog.log4j.slf4j18.impl
|
|
implementation catalog.slf4j.api
|
|
implementation catalog.jcommander
|
|
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.7"
|
|
apiVersion = "1.7"
|
|
jvmTarget = "11"
|
|
javaParameters = true
|
|
}
|
|
}
|