-
Notifications
You must be signed in to change notification settings - Fork 175
Allow to not use --module-version for the Java compiler #331
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
Allow to not use --module-version for the Java compiler #331
Conversation
- I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
Do we need to add a new |
Let me explore that option. As long as the same goal is achieved I'm not attached to new parameter. |
Unclear how to preserve compatibility with current default of Thus I prefer proposed solution, but I'm open to see it being solved differently. |
No special value, just allow users to specify |
With |
Then, I don't know how to differentiate the case of explicit empty or blank string set with |
It may be a question for @gnodet: we have a configuration option declared that way:
Do you know if it is possible for a user to explicitly set an empty value? Apparently, using |
we can also use a special value like |
I'm also not sure about special value. But perhaps new option, if it's accepted, could have better name than I proposed here. |
for me name is ok 😄 |
Sorry for being silent (I have a meeting to prepare next week). It seems to me that the cleanest solution would be to put an empty value |
Here is s reason: so I would not to do a magic in plugin for it |
Thanks for the link. Alternatively, in the following declaration (added in commit 09dce4e): @Parameter(property = "maven.compiler.moduleVersion", defaultValue = "${project.version}")
private String moduleVersion; What about removing the default value completely, and let users specify it explicitly? The rational given in MCOMPILER-579 (that |
when we remove default value we will break a current behavior |
There is something missing or misunderstood.
is completely valid module version when it ends with anything, as long as it follows |
For the
additionally consider, that using the It just enabled module version to be modified. |
Ah, okay. I do not remember having tested. |
@desruisseaux Do you have any other comments? |
No other comment. I'm still interested in making possible to set an empty value instead of adding a new parameter, but I may explore this possibility in version 4. I should probably learn more about the relationship between Eclipse SISU and Maven 4 (for eclipse-sisu#167). |
Then, this could be merged as proposed, right? |
Yes, sorry for being so slow. For merges on the 3.x branch, I tend to leave it @slawekjaranowski or any other who is familiar with the long history of this plugin and its interaction with Maven 3 (I'm more familiar with Maven 4 code base than Maven 3). |
164bad4
into
apache:maven-compiler-plugin-3.x