Skip to content
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

JDK warning about use of noverify option #1130

Open
peakschris opened this issue May 9, 2024 · 2 comments
Open

JDK warning about use of noverify option #1130

peakschris opened this issue May 9, 2024 · 2 comments

Comments

@peakschris
Copy link

Coursier/rules_jvm_external are emitting warnings from the JVM about use of the -noverify option:

external/bazel_tools/jdk/bin/java -noverify -jar external/rules_jvm_external~~maven~unpinned_maven2/coursier --help
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.

Can this be removed from here?

cmd = [java_path, "-noverify", "-jar"] + coursier_opts + _get_java_proxy_args(repository_ctx) + [jar_path]

Thanks!

@cheister
Copy link
Collaborator

cheister commented May 9, 2024

There are two things to check:

  • We still support Java 11 where "-noverify" is a valid option
  • The comment above the line you listed has the comment
# The -noverify option seems to be required after the proguarding step
# of the main JAR of coursier.

so we would need to check that that is no longer needed for proguard

@shs96c
Copy link
Collaborator

shs96c commented May 25, 2024

We still support Java 11, and will for some time, so the real question is whether we still need this after recent coursier updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants