diff --git a/android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java b/android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
index bf10f5f75d14..d19299220ed4 100644
--- a/android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
+++ b/android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
@@ -78,6 +78,14 @@ public void testClassesHaveOverrides() throws Exception {
* well be a JDK bug.
*/
|| info.getName().contains("TypeTokenTest")
+ /*
+ * "IllegalAccess tried to access class
+ * com.google.common.collect.testing.AbstractIteratorTester from class
+ * com.google.common.collect.MultimapsTest"
+ *
+ * ...when we build with JDK 22 and run under JDK 8.
+ */
+ || info.getName().contains("MultimapsTest")
/*
* Luckily, we don't care about analyzing tests at all. We'd skip them all if we could do so
* trivially, but it's enough to skip these ones.
diff --git a/android/guava/pom.xml b/android/guava/pom.xml
index 501b3967264c..2f710b769dd6 100644
--- a/android/guava/pom.xml
+++ b/android/guava/pom.xml
@@ -99,7 +99,11 @@
- maven-compiler-plugin
+ org.mvnsearch
+ toolchains-maven-plugin
+
+
+ maven-toolchains-plugin
maven-source-plugin
diff --git a/android/pom.xml b/android/pom.xml
index 954ae146a293..9d6239feb53a 100644
--- a/android/pom.xml
+++ b/android/pom.xml
@@ -12,6 +12,12 @@
Parent for guava artifacts
https://github.com/google/guava
+
+ ${java.specification.version}
%regex[.*.class]
1.4.4
@@ -19,7 +25,6 @@
3.43.0
2.28.0
3.0.0
- 9+181-r4173-1
2024-01-02T00:00:00Z
@@ -122,8 +127,11 @@
maven-compiler-plugin
- 3.8.1
+ 3.13.0
+
+ 22
+
1.8
UTF-8
@@ -139,7 +147,32 @@
doesnotexist
-XDcompilePolicy=simple
-
+
+
+
+ -Xplugin:ErrorProne -Xep:NullArgumentForNonNullParameter:OFF -Xep:Java8ApiChecker:ERROR
+
+
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+ -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
+ -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
@@ -157,6 +190,50 @@
true
+
+ org.mvnsearch
+ toolchains-maven-plugin
+ 4.5.0
+
+
+
+ toolchain
+
+
+
+
+
+
+ 11
+
+
+ 22
+
+
+ ${surefire.toolchain.version}
+
+
+
+
+
+ maven-toolchains-plugin
+ 3.2.0
+
+
+
+ toolchain
+
+
+
+
+
+
+
+ 11
+
+
+
+
maven-jar-plugin
3.2.0
@@ -176,7 +253,7 @@
org.codehaus.plexus
plexus-io
-
+
3.4.1
@@ -219,7 +296,7 @@
maven-javadoc-plugin
- 3.5.0
+ 3.8.0
true
true
@@ -231,7 +308,6 @@
-Xdoclint:-html
true
-
${maven-javadoc-plugin.additionalJOptions}
@@ -251,8 +327,11 @@
maven-surefire-plugin
- 2.7.2
+ 3.3.1
+
+ ${surefire.toolchain.version}
+
${test.include}
@@ -394,90 +473,6 @@
-
- javac9-for-jdk8
-
- 1.8
-
-
-
-
- maven-compiler-plugin
-
-
-
- -J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar
-
-
-
-
-
-
-
- run-error-prone
-
-
- [11,12),[16,)
-
-
-
-
- maven-compiler-plugin
-
-
-
-
- -Xplugin:ErrorProne -Xep:NullArgumentForNonNullParameter:OFF -Xep:Java8ApiChecker:ERROR
-
-
- -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
- -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
- -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
-
-
-
-
-
-
javac-for-jvm18plus
diff --git a/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java b/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
index bf10f5f75d14..d19299220ed4 100644
--- a/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
+++ b/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
@@ -78,6 +78,14 @@ public void testClassesHaveOverrides() throws Exception {
* well be a JDK bug.
*/
|| info.getName().contains("TypeTokenTest")
+ /*
+ * "IllegalAccess tried to access class
+ * com.google.common.collect.testing.AbstractIteratorTester from class
+ * com.google.common.collect.MultimapsTest"
+ *
+ * ...when we build with JDK 22 and run under JDK 8.
+ */
+ || info.getName().contains("MultimapsTest")
/*
* Luckily, we don't care about analyzing tests at all. We'd skip them all if we could do so
* trivially, but it's enough to skip these ones.
diff --git a/guava/pom.xml b/guava/pom.xml
index be0bab174e16..cd2c7412dae6 100644
--- a/guava/pom.xml
+++ b/guava/pom.xml
@@ -99,7 +99,11 @@
- maven-compiler-plugin
+ org.mvnsearch
+ toolchains-maven-plugin
+
+
+ maven-toolchains-plugin
maven-source-plugin
diff --git a/pom.xml b/pom.xml
index 7e634f7a644e..50496f9700ac 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,6 +12,12 @@
Parent for guava artifacts
https://github.com/google/guava
+
+ ${java.specification.version}
%regex[.*.class]
1.4.4
@@ -19,7 +25,6 @@
3.43.0
2.28.0
3.0.0
- 9+181-r4173-1
2024-01-02T00:00:00Z
@@ -123,8 +128,11 @@
maven-compiler-plugin
- 3.8.1
+ 3.13.0
+
+ 22
+
1.8
UTF-8
@@ -140,7 +148,32 @@
doesnotexist
-XDcompilePolicy=simple
-
+
+
+
+ -Xplugin:ErrorProne -Xep:NullArgumentForNonNullParameter:OFF -Xep:Java8ApiChecker:ERROR
+
+
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
+ -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+ -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
+ -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
@@ -158,6 +191,50 @@
true
+
+ org.mvnsearch
+ toolchains-maven-plugin
+ 4.5.0
+
+
+
+ toolchain
+
+
+
+
+
+
+ 11
+
+
+ 22
+
+
+ ${surefire.toolchain.version}
+
+
+
+
+
+ maven-toolchains-plugin
+ 3.2.0
+
+
+
+ toolchain
+
+
+
+
+
+
+
+ 11
+
+
+
+
maven-jar-plugin
3.2.0
@@ -177,7 +254,7 @@
org.codehaus.plexus
plexus-io
-
+
3.4.1
@@ -214,7 +291,7 @@
maven-javadoc-plugin
- 3.5.0
+ 3.8.0
true
true
@@ -226,7 +303,6 @@
-Xdoclint:-html
true
-
${maven-javadoc-plugin.additionalJOptions}
@@ -246,8 +322,11 @@
maven-surefire-plugin
- 2.7.2
+ 3.3.1
+
+ ${surefire.toolchain.version}
+
${test.include}
@@ -389,90 +468,6 @@
-
- javac9-for-jdk8
-
- 1.8
-
-
-
-
- maven-compiler-plugin
-
-
-
- -J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar
-
-
-
-
-
-
-
- run-error-prone
-
-
- [11,12),[16,)
-
-
-
-
- maven-compiler-plugin
-
-
-
-
- -Xplugin:ErrorProne -Xep:NullArgumentForNonNullParameter:OFF -Xep:Java8ApiChecker:ERROR
-
-
- -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
- -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
- -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
- -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
-
-
-
-
-
-
javac-for-jvm18plus