Skip to content

Commit

Permalink
Replace --add-exports javacopts with add_exports attribute
Browse files Browse the repository at this point in the history
to make sure they propagate to the top level `java_binary`.

PiperOrigin-RevId: 602804182
Change-Id: I6c73c9f11b03d336a88a908735bf7a7814351f5b
  • Loading branch information
cushon authored and copybara-github committed Jan 30, 2024
1 parent e3037be commit e57d93f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ java_library(
["javac/*.java"],
exclude = JAVAC_OPTIONS_SRCS + JAVAC_TEST_SRCS,
),
javacopts = [
"--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
"--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED",
"--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
"--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED",
"--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED",
add_exports = [
"jdk.compiler/com.sun.tools.javac.api",
"jdk.compiler/com.sun.tools.javac.code",
"jdk.compiler/com.sun.tools.javac.comp",
"jdk.compiler/com.sun.tools.javac.file",
"jdk.compiler/com.sun.tools.javac.main",
"jdk.compiler/com.sun.tools.javac.util",
],
deps = [
":invalid_command_line_exception",
Expand Down

0 comments on commit e57d93f

Please sign in to comment.