Remove -noverify (#1620)
-noverify was removed in JDK 27 (deprecated since JDK 13) and now causes the launcher to fail with an unrecognized option error. It was only needed for proguarded coursier JARs from very old releases: https://github.com/coursier/coursier/pull/1245
diff --git a/private/rules/coursier.bzl b/private/rules/coursier.bzl
index ba66f90..3419af1 100644
--- a/private/rules/coursier.bzl
+++ b/private/rules/coursier.bzl
@@ -328,10 +328,7 @@
java_path = _java_path(repository_ctx)
if java_path != None:
- # https://github.com/coursier/coursier/blob/master/doc/FORMER-README.md#how-can-the-launcher-be-run-on-windows-or-manually-with-the-java-program
- # The -noverify option seems to be required after the proguarding step
- # of the main JAR of coursier.
- cmd = [java_path, "-noverify", "-jar"] + coursier_opts + _get_java_proxy_args(repository_ctx) + [jar_path]
+ cmd = [java_path, "-jar"] + coursier_opts + _get_java_proxy_args(repository_ctx) + [jar_path]
else:
# Try to execute coursier directly
cmd = [jar_path] + coursier_opts + ["-J%s" % arg for arg in _get_java_proxy_args(repository_ctx)]