Need help setting jLinkOptions for jpackage plugin #22
-
Hi Petr, I have a working gradle 7.5.1 build.gradle for my project. It includes the jpackage plugin:
It has no linux configuration block, but does have one for mac and windows. It currently builds successfully on windows, mac and linux. I can't figure out how to pass any I tried adding the following linux configuration block and then building on linux: Just as a guess, I tried replacing Any idea what I'm doing wrong? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
On a side note, I noticed a couple of typos in the README.md on your github home page. The Default Command-Line Arguments section says Also, the Example in that same section misspells |
Beta Was this translation helpful? Give feedback.
-
Just for a bit of context, I'm not sure if I even need to set the compression level for jpackage. I can't find anything saying what its default value is. I assume it's 0, but I want to specifically set it to 0 and see if that fixes a linux distro problem I've recently encountered. I had been building my linux distros with Java 17.0.4.1 with no problem. I had no problem installing successive versions of the app on my Debian 11 computer. Recently, my build server was upgraded to Java 17.0.5+8 and every build since then builds successfully, but when I try to install it on my Debian 11 computer, it fails saying I'm open to any ideas with regard to this original issue, but in any case, I'd like to get Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi, For some reason
-- Petr |
Beta Was this translation helpful? Give feedback.
-
With regards to compression question I can only suggest generating app image which I always do for myself. It does not fit into packaging infrastructure but it works all the time. Generating Linux packages like deb or rpm is highly dependent on a particular distro flavor and may not work at all. |
Beta Was this translation helpful? Give feedback.
Hi,
For some reason
setJLinkOptions
tranlates intoJLinkOptions
with capital J. No idea why cause I don't know Groovy and always use Kotlin DSL in gradle.JLinkOptions = [ "--compress=0", "--no-man-pages" ]
-- Petr