release Java 23 compatible version
The Plugin currently (version 3.0.1) fails to work on projects with JDK 23. There's already an unmerged PR that addresses this: https://github.com/beryx/badass-jlink-plugin/pull/271
I add this new issue to describe a workaround until a new version is released.
Workaround until new plugin version is released
NOTE: This only works when using the plugin on your local machine, so it is rather a "works-for-me" hack than a general solution.
- Check out the plugin code and apply the PR mentioned above.
- Change the plugin version (I used 3.0.2).
- build using
./gradlew build publishToMavenLocal publishJlinkPluginMarkerMavenPublicationToMavenLocal publishPluginMavenPublicationToMavenLocal(I am not sure if the latter two targets are really necessary) - Create/edit your
~/.gradle/init.gradleto contain the following text:
settingsEvaluated { settings ->
settings.pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}
}
gradle.settingsEvaluated { settings ->
settings.buildscript.repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
}
- Update the plugin version in the project you want to use the patched plugin in
Sorry. I used the wrong filename. It's not ~/.gradle/gradle.init but ~/.gradle/init.gradle. Corrected it in the workaround description.
Hi @xzel23 , thanks for your patch and for keeping this plugin alive single handed! I've added your fork repository to the credits of my app!
https://github.com/CodeDead/opal/tree/development?tab=readme-ov-file#dependencies
Thank you too. Actually I think we will see an updated version of the original plugin soon. Stay tuned!
Fixed with 3.1.0-rc-1. I have also successfully tested with Java 24 EA (you must have it installed locally and use a toolchain since Gradle does not support Java 24 yet).
Fixed with 3.1.0-rc-1. I have also successfully tested with Java 24 EA (you must have it installed locally and use a toolchain since Gradle does not support Java 24 yet).
Works like a charm! Thanks @xzel23 !