36 lines
750 B
Groovy
36 lines
750 B
Groovy
plugins {
|
|
id 'maven-publish'
|
|
id 'net.woggioni.gradle.envelope'
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
}
|
|
|
|
dependencies {
|
|
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: getProperty('kotlin.version')
|
|
implementation group: 'com.beust', name: 'jcommander'
|
|
implementation group: "org.slf4j", name: "slf4j-simple"
|
|
implementation rootProject
|
|
}
|
|
|
|
envelopeJar {
|
|
mainClass = 'net.woggioni.wson.cli.MainKt'
|
|
}
|
|
|
|
|
|
compileKotlin {
|
|
kotlinOptions.with {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
url = "https://mvn.woggioni.net/"
|
|
}
|
|
}
|
|
publications {
|
|
myDistribution(MavenPublication) {
|
|
artifact envelopeJar
|
|
}
|
|
}
|
|
} |