From 200b7642d4c4f3dc96928c5b85b3f94be29dd005 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Mon, 19 Aug 2024 15:57:07 -0700 Subject: [PATCH] Run Error Prone tests against the configured JDK version The adoption of maven toolchains meant this was accidentally always running tests against the latest JDK we had a toolchain for, instead of the default JDK version configured for the current CI run. PiperOrigin-RevId: 665021442 --- pom.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pom.xml b/pom.xml index 2992590fe2c..2181e204e5b 100644 --- a/pom.xml +++ b/pom.xml @@ -246,6 +246,19 @@ maven-surefire-plugin 3.1.0 + + + ${java.specification.version} + -Xmx1g --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED