added envelope jar for wson-cli
This commit is contained in:
@@ -2,10 +2,15 @@ plugins {
|
||||
id 'maven-publish'
|
||||
id 'net.woggioni.gradle.envelope'
|
||||
id 'org.jetbrains.kotlin.jvm'
|
||||
id 'net.woggioni.gradle.multi-release-jar'
|
||||
}
|
||||
|
||||
ext {
|
||||
setProperty('jpms.module.name', 'net.woggioni.wson.cli')
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: getProperty('kotlin.version')
|
||||
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: getProperty('kotlin.version')
|
||||
implementation group: 'com.beust', name: 'jcommander'
|
||||
implementation group: "org.slf4j", name: "slf4j-simple"
|
||||
implementation rootProject
|
||||
@@ -13,8 +18,12 @@ dependencies {
|
||||
|
||||
envelopeJar {
|
||||
mainClass = 'net.woggioni.wson.cli.MainKt'
|
||||
mainModule = 'net.woggioni.wson.cli'
|
||||
}
|
||||
|
||||
java {
|
||||
modularity.inferModulePath = true
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.with {
|
||||
@@ -33,4 +42,10 @@ publishing {
|
||||
artifact envelopeJar
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('listConfigurations') {
|
||||
configurations.each {
|
||||
println(it.name)
|
||||
}
|
||||
}
|
8
wson-cli/src/java9/java/module-info.java
Normal file
8
wson-cli/src/java9/java/module-info.java
Normal file
@@ -0,0 +1,8 @@
|
||||
module net.woggioni.wson.cli {
|
||||
requires kotlin.stdlib;
|
||||
requires kotlin.stdlib.jdk8;
|
||||
requires net.woggioni.wson;
|
||||
requires com.beust.jcommander;
|
||||
|
||||
opens net.woggioni.wson.cli to com.beust.jcommander;
|
||||
}
|
4
wson-cli/src/java9/java/net/woggioni/wson/cli/Foo.java
Normal file
4
wson-cli/src/java9/java/net/woggioni/wson/cli/Foo.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package net.woggioni.wson.cli;
|
||||
|
||||
public class Foo {
|
||||
}
|
9
wson-cli/src/main/java9/module-info.java
Normal file
9
wson-cli/src/main/java9/module-info.java
Normal file
@@ -0,0 +1,9 @@
|
||||
module net.woggioni.wson.cli {
|
||||
requires kotlin.stdlib;
|
||||
requires kotlin.stdlib.jdk8;
|
||||
requires net.woggioni.wson;
|
||||
requires com.beust.jcommander;
|
||||
exports net.woggioni.wson.cli;
|
||||
|
||||
opens net.woggioni.wson.cli to com.beust.jcommander;
|
||||
}
|
4
wson-cli/src/main/java9/net/woggioni/wson/cli/Foo.java
Normal file
4
wson-cli/src/main/java9/net/woggioni/wson/cli/Foo.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package net.woggioni.wson.cli;
|
||||
|
||||
public class Foo {
|
||||
}
|
Reference in New Issue
Block a user