-
Notifications
You must be signed in to change notification settings - Fork 68
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
Upgrade Google Java Format 1.14.0 -> 1.15.0 #141
Conversation
README.md
Outdated
@@ -199,14 +199,6 @@ You can pass parameters via standard `-D` syntax. | |||
|
|||
`-Dfmt.skip` is whether the plugin should skip the operation. | |||
|
|||
### Using with Java 16+ and Maven | |||
|
|||
Since the JDK is more restrictive since version 16 you need to pass some [parameters](https://github.com/google/google-java-format#jdk-16) to the JVM to run the Google Java Formatter. To do so add the file `.mvn/jvm.config` under your project's root directory with the following contents: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section is also removed upstream: google/google-java-format@13ca73e.
Seems this (and in particular google/google-java-format#759) might make #140 less necessary |
pom.xml
Outdated
@@ -221,7 +221,7 @@ | |||
<jdk>[17,)</jdk> | |||
</activation> | |||
<properties> | |||
<!-- TODO: Remove this once google-java-fmt supports 17 or the plugin supports forking and run with these args built-in --> | |||
<!-- TODO: Remove this once google-java-fmt supports 17 or the plugin supports forking --> | |||
<argLine> --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</argLine> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the fix in google-java-format works, it should be possible to remove these flags right?
I would say that the |
67de601
to
4cf984e
Compare
Rebased the PR. |
This wouldn't really have any effects for the plugin I believe? Can still merge ofc. |
Yes you are right. Fine with both merging and closing the PR. |
It's good to be on the latest version after all :) |
See: