Skip to content

Commit fdaafcc

Browse files
committed
chore: add java options to for google-java-format
The new version now needs various 'opens'.
1 parent 5d882e8 commit fdaafcc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

google-java-format.jvmopts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
2+
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
3+
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
4+
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
5+
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
6+
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"scripts": {
55
"coursier:checkstyle": "./coursier bootstrap com.puppycrawl.tools:checkstyle:10.20.2 -f -o node_modules/.bin/checkstyle -M com.puppycrawl.tools.checkstyle.Main",
6-
"coursier:google-java-format": "./coursier bootstrap com.google.googlejavaformat:google-java-format:1.25.0 -f -o node_modules/.bin/google-java-format",
6+
"coursier:google-java-format": "./coursier bootstrap com.google.googlejavaformat:google-java-format:1.25.0 -f -o node_modules/.bin/google-java-format --jvm-option-file google-java-format.jvmopts",
77
"coursier:scalafmt": "./coursier bootstrap org.scalameta::scalafmt-cli:3.8.3 -f -o node_modules/.bin/scalafmt",
88
"postinstall": "run-s coursier:*",
99
"format:scala": "find . -name \"*.scala\" -o -name \"*.sbt\" | xargs scalafmt",

0 commit comments

Comments
 (0)