Closed chrisrush1 closed 4 years ago
The --package-type
option has been renamed to --type
in build 14-jpackage+1-70 from 2019/11/12. The last release of badass-runtime-plugin is compatible with this jpackage build.
It seems that you currently use 1.7.2 or an older version of the badass-runtime-plugin in your build.gradle. Also, on your developement machine, java_home14
probably points to an older jpackage build. That's why everything still works fine there.
But on the build server, java_home14
probably points to the newest jpackage build, which is incompatible with your older version of badass-runtime-plugin.
Here's what you need to do:
Thanks for this solution and for for the plugin in general. I'll update the plugin version and double check the java 14 version on the build server.
This solved the problem for me, a vote to close this issue.
I have a working gradle build script that generates a fully functional exe on development machine using the badass-runtime plugin with jpackage. For some reason when the same build.gradle is run on the build server I see the following error:
“WARNING: Using incubator modules: jdk.incubator.jpackage “ “Error: Invalid Option [--package-type]"
The build server has the same Java 14 home as my development machine so uses the same version of jpackage. The build.gradle takes care of everything else so that should be the same.
I have the following in the jpackage script block:
} Any thoughts as to what could be different?
Thanks