Skip to content

Commit 28bb365

Browse files
Add exports for running java formatter application
1 parent 769cebe commit 28bb365

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

palantir-java-format/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ moduleJvmArgs {
4141
'jdk.compiler/com.sun.tools.javac.api')
4242
}
4343

44+
applicationDefaultJvmArgs = [
45+
'--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED',
46+
'--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED',
47+
'--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED',
48+
'--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED',
49+
'--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED',
50+
'--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED',
51+
'--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED'
52+
]
53+
4454
tasks.withType(JavaCompile).named('compileJava') {
4555
// By setting the source and target compatibility to 11, while still using a higher level
4656
// JDK for compilation, we can compile against the AST classes we need to support >11 source

0 commit comments

Comments
 (0)