-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MJLINK-77] accept JDK21+ compress parameters #181
Conversation
I cannot create a test for JDK21, because of the way too old spotless version. :( Need to wait to have #180 merged first, then rebase this PR. |
a77b7f0
to
958a324
Compare
What about dropping all exploded options from the mojo and just pass args to jlink, otherwise we'll keep running on this kind of issues and the actual wrapping of all options has very few values (had the exact same issue with graalvm and getting rid of the mojo mapping made the maintenance easier without bringin any issue to end users in terms of usage). |
Two obvious disadvantages:
We could add |
well think compiler is one good example of why a hybrid mode is bad, you get the worse of both worlds and mess up the completion with concurrent options you never detect - exactly the issue you are trying to fix. |
@rmannibucau I think that's a fundamental plugin policy discussion which should go onto the mailing list. For now, we should review the changes at hand. My open question is: Should we validate here at all, see PR description. |
@bmarwell if you dont passthru you know so you validate and forbid future usage until the plugin is upgraded IMHO otherwise it does not make sense to make it specific. |
if ( !target.exists() || !target.isDirectory() ) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
groovy has a assert
statement, code can look better with it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm for simplify code and pass parameter as it to external tools
Yes, see #183. Closing this one, we all agree on it. |
This one needs a description. This PR changes the behaviour in a way that valid values will be checked according to the JDK 21 help. However, it would let values like
zip-6
pass for JDK < 21, which is not a valid value for JDK 9 through 20.So, I was thinking, maybe not to check the parameters for validity at all OR extend the check. However, I would vote to drop the checks alltogether, because future jlink versions could accept
zstd-6
orzst-6
as valid value, as well as other compression formats or number systems (like arabic). But since this would have been a change in behaviour AND easier to implement, I started with this version.My -1, Let's get rid of the duplicate parameter checks. Just pass the user input to jlink.
Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MJLINK-XXX] - Fixes bug in ApproximateQuantiles
,where you replace
MJLINK-XXX
with the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verify
to make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
mvn -Prun-its clean verify
).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.