-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 Multi-Release JAR instead of reflection for decompression #25158
base: master
Are you sure you want to change the base?
Conversation
e91abbe
to
2ddab37
Compare
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.
Not confident reviewing this.
How is the selection logic happeing now exactly?
@losipiuk if JDK is 22+ the |
1e663bc
to
52a5b0b
Compare
Since we've moved to JDK 11 we can now use multi-release JAR
115c875
to
07d3008
Compare
How does this interact with IntelliJ? |
@martint badly but at least it's not breaking IntelliJ :) |
07d3008
to
d5779eb
Compare
Multi-Release JARs are causing error_prone/javadoc/surefire to use the latest compilation unit while resolving dependencies for other modules.
d5779eb
to
518256b
Compare
@@ -82,7 +82,7 @@ jobs: | |||
- name: Maven Checks | |||
run: | | |||
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | |||
$MAVEN clean verify -B --strict-checksums -V -T 1C -DskipTests -P ci | |||
$MAVEN clean install verify -B --strict-checksums -V -T 1C -DskipTests -P ci |
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.
verify is redundant now ..
$MAVEN clean install verify -B --strict-checksums -V -T 1C -DskipTests -P ci | |
$MAVEN clean install -B --strict-checksums -V -T 1C -DskipTests -P ci |
@@ -197,7 +197,7 @@ jobs: | |||
run: | | |||
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | |||
# Skip checks, these are run in `maven-checks` job and e.g. checkstyle is expensive. | |||
$MAVEN ${MAVEN_TEST} -T 1C clean compile test-compile -DskipTests -Dair.check.skip-all=true ${MAVEN_GIB} -Dgib.buildUpstream=never -P errorprone-compiler \ | |||
$MAVEN ${MAVEN_TEST} -T 1C clean compile test-compile install -DskipTests -Dair.check.skip-all=true ${MAVEN_GIB} -Dgib.buildUpstream=never -P errorprone-compiler \ |
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.
$MAVEN ${MAVEN_TEST} -T 1C clean compile test-compile install -DskipTests -Dair.check.skip-all=true ${MAVEN_GIB} -Dgib.buildUpstream=never -P errorprone-compiler \ | |
$MAVEN ${MAVEN_TEST} -T 1C clean install -DskipTests -Dair.check.skip-all=true ${MAVEN_GIB} -Dgib.buildUpstream=never -P errorprone-compiler \ |
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.
Didnt look in more detail but we can definitely get rid of redundant lifecycle phase invocations
@@ -328,7 +328,7 @@ jobs: | |||
- name: Maven Tests | |||
id: tests | |||
run: | | |||
$MAVEN test ${MAVEN_TEST} -pl ' | |||
$MAVEN test install ${MAVEN_TEST} -pl ' |
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.
$MAVEN test install ${MAVEN_TEST} -pl ' | |
$MAVEN install ${MAVEN_TEST} -pl ' |
How so? Can you elaborate? If this doesn't work seamlessly with IntelliJ, then it's a non-starter. |
Since we've moved to JDK 11 we can now use multi-release JAR
Description
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: