project renamed envelope

This commit is contained in:
2021-09-25 21:08:21 +02:00
parent 9f085af24a
commit 5aea49219f
17 changed files with 39 additions and 384 deletions

View File

@@ -4,7 +4,7 @@ plugins {
id "net.woggioni.gradle.multi-release-jar"
}
ext.setProperty("jpms.module.name", "net.woggioni.executable.jar")
ext.setProperty("jpms.module.name", "net.woggioni.envelope")
configurations {
embedded
@@ -30,7 +30,7 @@ tasks.withType(JavaCompile).configureEach {
jar {
manifest {
attributes([
(Attributes.Name.SPECIFICATION_TITLE) : "executable-jar-launcher",
(Attributes.Name.SPECIFICATION_TITLE) : "envelope-launcher",
(Attributes.Name.SEALED) : true
].collectEntries {
[it.key.toString(), it.value.toString()]
@@ -57,6 +57,6 @@ tasks.register("tar", Tar) {
tasks.named(JavaPlugin.COMPILE_JAVA_TASK_NAME, JavaCompile) {
doFirst {
String path = project(":common").extensions.getByType(JavaPluginExtension).sourceSets.named("main").get().output.asPath
options.compilerArgs.addAll(["--patch-module", "net.woggioni.executable.jar=$path"])
options.compilerArgs.addAll(["--patch-module", "net.woggioni.envelope=$path"])
}
}