Skip to content

Commit

Permalink
Update google-java-format to build with Java 17
Browse files Browse the repository at this point in the history
#1159

PiperOrigin-RevId: 682491191
  • Loading branch information
cushon authored and google-java-format Team committed Oct 4, 2024
1 parent 6c43670 commit bc5eabf
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>11</source>
<source>17</source>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<charset>UTF-8</charset>
Expand Down Expand Up @@ -215,41 +215,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jdk11</id>
<activation>
<jdk>[11,17)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/Java17InputAstVisitor.java</exclude>
<exclude>**/Java21InputAstVisitor.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<excludePackageNames>com.google.googlejavaformat.java.java17</excludePackageNames>
<excludePackageNames>com.google.googlejavaformat.java.java21</excludePackageNames>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jdk17</id>
<activation>
Expand Down

0 comments on commit bc5eabf

Please sign in to comment.