|
143 | 143 | <github.global.server>github</github.global.server> |
144 | 144 | <site.installationModule>google-cloud-datastore-parent</site.installationModule> |
145 | 145 | <project.javadoc.protobufBaseURL>https://googleapis.dev/java/google-api-grpc/latest</project.javadoc.protobufBaseURL> |
146 | | - <error-prone.version>2.31.0</error-prone.version> |
| 146 | +<!-- Error Prone Core version is not managed by shared-deps. Keep this version in sync with upstream shared-deps --> |
| 147 | +<!-- Related: https://github.com/googleapis/java-datastore/issues/1889 --> |
| 148 | +<!-- As of v2.42.0, the min JDK version needed is JDK 17+ --> |
| 149 | + <error-prone.version>2.42.0</error-prone.version> |
147 | 150 | </properties> |
148 | 151 |
|
149 | 152 | <dependencyManagement> |
|
231 | 234 | </pluginManagement> |
232 | 235 | </build> |
233 | 236 |
|
234 | | - <profiles> |
235 | | - <profile> |
236 | | - <!-- the current errorprone version does not support JDK 24 onwards --> |
237 | | - <id>no-errorprone-jdk-24-onwards</id> |
238 | | - <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> |
260 | | - </activation> |
261 | | - <build> |
262 | | - <plugins> |
263 | | - <plugin> |
264 | | - <groupId>org.apache.maven.plugins</groupId> |
265 | | - <artifactId>maven-compiler-plugin</artifactId> |
266 | | - <version>3.14.0</version> |
267 | | - <configuration> |
268 | | - <encoding>UTF-8</encoding> |
269 | | - <fork>true</fork> |
270 | | - <compilerArgs> |
271 | | - <arg>-XDcompilePolicy=simple</arg> |
272 | | - <arg>-Xplugin:ErrorProne</arg> |
273 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg> |
274 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg> |
275 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg> |
276 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg> |
277 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg> |
278 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg> |
279 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg> |
280 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg> |
281 | | - <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> |
282 | | - <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg> |
283 | | - </compilerArgs> |
284 | | - <annotationProcessorPaths> |
285 | | - <path> |
286 | | - <groupId>com.google.errorprone</groupId> |
287 | | - <artifactId>error_prone_core</artifactId> |
288 | | - <version>${error-prone.version}</version> |
289 | | - </path> |
290 | | - </annotationProcessorPaths> |
291 | | - </configuration> |
292 | | - </plugin> |
293 | | - </plugins> |
294 | | - </build> |
295 | | - </profile> |
296 | | - </profiles> |
297 | | - |
298 | 237 | <modules> |
299 | 238 | <module>google-cloud-datastore</module> |
300 | 239 | <module>grpc-google-cloud-datastore-admin-v1</module> |
|
0 commit comments