From c2112b9e163b2ba081b0923ed8136841226ad75d Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Tue, 21 Jan 2025 15:30:24 +0800 Subject: [PATCH] bump lys version --- README.md | 19 ++++++++++++++----- gradle.properties | 6 ++++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0030986..899b889 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,12 @@ Declare the plugin in your build's `settings.gradle` like this pluginManagement { repositories { maven { - url = 'https://woggioni.net/mvn/' + url = 'https://gitea.woggioni.net/api/packages/woggioni/maven' } } plugins { - id "net.woggioni.gradle.envelope" version "2023.09.25" + id "net.woggioni.gradle.envelope" version "2025.01.21" } } ``` @@ -80,10 +80,12 @@ ${sys:user.home}/plugins ``` ###### javaAgent -This is a method accepting 2 strings, the first is the Java agent classname and the second one is the java agent arguments. +This is a method accepting 2 strings, the first is the Java agent class name and the second one is the java agent arguments. It can be invoked multiple times to setup multiple java agents for the same JAR file. All the java agents will be invoked before the application startup. +Java agents configured in this way will always run together with the application and cannot be disabled. + ### Example ```groovy @@ -107,7 +109,14 @@ envelopeJar { ### Limitations -This plugin requires Gradle >= 6.0 and Java >=0 8 to build the executable jar file. +- This plugin requires Gradle >= 6.0 and Java >=0 8 to build the executable jar file. The assembled envelope jar requires and Java >= 8 to run, if only `mainClass` is specified, if both `mainModule` and `mainClass` are specified the generated jar file will (try to) run in classpath mode on Java 8 -and in JPMS mode on Java > 8. \ No newline at end of file +and in JPMS mode on Java > 8. + +- When running in JPMS mode (when the `mainModule` property is set), command line arguments like +`--add-opens`, `--add-exports`, `--add-reads` won't work as JPMS is initialized after application startup + +- When running in JPMS mode custom stream handler need to added installed using `URL.setURLStreamHandlerFactory`, + setting the `java.protocol.handler.pkgs` system property does not work as it tries to load + the respective handler using the system classloader which, in an envelope application, can only load envelope own classes diff --git a/gradle.properties b/gradle.properties index 94ffdc5..d5a9c26 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,8 @@ gitea.maven.url = https://gitea.woggioni.net/api/packages/woggioni/maven -lys.version = 2024.12.28 +lys.version = 2025.01.17 -version.envelope=2025.01.08 +version.envelope=2025.01.21 + +org.gradle.caching=true