Skip to content

Commit 296dec4

Browse files
cushongoogle-java-format Team
authored andcommitted
Update the IntelliJ plugin to google-java-format 2.0.0.
The plugin already calls `JavaFormatterOptions.Builder.cleanup(false)` for whitespace-only formatting, which is only available in 2.0.0, so it doesn't build against 1.36.1. PiperOrigin-RevId: 1010533401
1 parent e01cd02 commit 296dec4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎idea_plugin/build.gradle.kts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ repositories {
3030
}
3131

3232
// https://github.com/google/google-java-format/releases
33-
val googleJavaFormatVersion = "1.36.1"
34-
val pluginPatchVersion = "1"
33+
val googleJavaFormatVersion = "2.0.0"
34+
val pluginPatchVersion = "0"
3535

3636
java {
3737
toolchain { languageVersion = JavaLanguageVersion.of(21) }

‎idea_plugin/src/main/resources/META-INF/plugin.xml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
]]></description>
3636
<change-notes><![CDATA[
3737
<dl>
38+
<dt>2.0.0.0</dt>
39+
<dd>Updated to use google-java-format 2.0.0.</dd>
3840
<dt>1.36.1.1</dt>
3941
<dd>Move settings page to Tools section.</dd>
4042
<dt>1.36.1.0</dt>

0 commit comments

Comments
 (0)