Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 9a21efc

Browse files
committed
chore: Run errorprone for JDK 17+
1 parent 83fb5cf commit 9a21efc

1 file changed

Lines changed: 2 additions & 25 deletions

File tree

pom.xml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@
143143
<github.global.server>github</github.global.server>
144144
<site.installationModule>google-cloud-datastore-parent</site.installationModule>
145145
<project.javadoc.protobufBaseURL>https://googleapis.dev/java/google-api-grpc/latest</project.javadoc.protobufBaseURL>
146-
<error-prone.version>2.31.0</error-prone.version>
147146
</properties>
148147

149148
<dependencyManagement>
@@ -233,37 +232,15 @@
233232

234233
<profiles>
235234
<profile>
236-
<!-- the current errorprone version does not support JDK 24 onwards -->
237-
<id>no-errorprone-jdk-24-onwards</id>
235+
<id>java17</id>
238236
<activation>
239-
<jdk>[24,)</jdk>
240-
</activation>
241-
<build>
242-
<plugins>
243-
<plugin>
244-
<artifactId>maven-compiler-plugin</artifactId>
245-
<configuration>
246-
<fork>true</fork>
247-
<compilerArgs combine.children="append">
248-
<!-- we only use the basic compilation flags without activating errorprone -->
249-
<arg>-XDcompilePolicy=simple</arg>
250-
</compilerArgs>
251-
</configuration>
252-
</plugin>
253-
</plugins>
254-
</build>
255-
</profile>
256-
<profile>
257-
<id>java9</id>
258-
<activation>
259-
<jdk>[9,24)</jdk>
237+
<jdk>[17,)</jdk>
260238
</activation>
261239
<build>
262240
<plugins>
263241
<plugin>
264242
<groupId>org.apache.maven.plugins</groupId>
265243
<artifactId>maven-compiler-plugin</artifactId>
266-
<version>3.14.0</version>
267244
<configuration>
268245
<encoding>UTF-8</encoding>
269246
<fork>true</fork>

0 commit comments

Comments
 (0)