-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Use jar
, not maven-jar-plugin
, to create MR-JAR
#348
Comments
Thanks, that's an interesting suggestion, but can you point to other projects on GitHub that successfully apply this to create multi-release-JARs? Ideally with links to these projects along the lines of Spring, Apache (you seem to be an Apache committer or similars? I know some of them use Gradle, at this point, switching to Gradle is not acceptable or easy (of course PRs and contributions would be welcome then we could always consider it) so we need a working solution that works in the CI servers ideally not requiring some low-level BAT or SH scripts that are OS-specific. Any chance you can provide us with this? |
Ok so what do other projects do in such a case? |
At the moment unit-api has one way to create a "dual-release JAR" (for Java 8+9) using |
At the time I proposed the |
|
@sormuras Does I'm a little puzzled because the title was about "creating JARs" and not deleting them, is that the case with the JDK jar command? |
No.
|
Ok that sounds better because Along the lines of above suggestion I think it would be a better addition to the TCK if not by also using something like What I see in @desruisseaux What do you think about it?
(see the entire Circle-CI build log: https://circleci.com/api/v1.1/project/github/unitsofmeasurement/indriya/2020/output/103/0?file=true&allocation-id=6098897e807a794d31bec5d5-0-build%2FF831A5E) |
@sormuras Maybe @desruisseaux could consider it if he finds time to implement JSR 385 in Seshat. As for the JSR there are extensions that need more attention and unless the JDK ever woke-up Valhalla from the dead instead of other features like yet another Garbage Collector (or throwing JIT out like https://openjdk.java.net/jeps/410) as well as more pruning and removal including Applets or the SecurityManager I'm sorry but Java 17 just does not contain any convincing feature that would ask for migrating to it, 16 seemed better including records or fixing that long overdue problem with modular multi-release JARs. Maybe you know something inside the OpenJDK team or mabe others including @AlanBateman know more about Valhalla and its fate? Without that I'm afraid there is no need for a whole new Unit JSR either and without such a brand new JSR there is neither demand nor justification to completely overhaul and replace the way the RI was built. |
FYI: openjdk/jdk#3971 |
What's the target Java version? We won't replace a proper toolchain with some manual puzzle, but if this is available in a future version either for the TCK, see unitsofmeasurement/unit-tck#42 or in something like a post-build step of the CI build pipeline, it could be used there if this new option works on the final JAR file. |
Hi Werner, these assumptions puzzles me. There is so much wrong in it. |
Hi @bmarwell Like everyone you are welcome to help by proposing a PR, ideally as a JCP Associate member, but since these are only parts of the build tool chain should you have a problem to join the JCP even as an Associate, the non Java code pieces that are not used at runtime are usually less critical and we could merge such PRs f they work. Please propose something. Note as of now, the other plugins won't work with Java 15 or 16 yet (I can't say which one, but at the moment until Circle-CI forces to migrate all pipelines to Java 17 or higher that is not a problem because we are not using Java 17 features and the RI is compatible all the way down to 8 with specific multi-release folders up to 14) so using 17 for the actual tool chain is not an option (unless all the Maven plugins involved have been fixed accordingly) but of course in a post build step as long as the CI server allows to draw in multiple JDKs there feel free to use Java 17 once the CI tool will support it of course, it isn' final yet. Except a bit of help mostly on the arithmetic side mostly by @andi-huber this JSR in Maintenance mode has no EG anymore hence it is just us 3 Maintenance Leads and in reality it's me alone who does those things. |
indriya/pom.xml
Lines 711 to 725 in 1fa2d72
This leads from https://maven.apache.org/plugins/maven-jar-plugin/ to https://maven.apache.org/shared/maven-archiver/ to basically a
.zip
file with a different file name ending, here.jar
-- withjar
never being executed, iirc.The text was updated successfully, but these errors were encountered: