diff --git a/mug-errorprone/BUILD b/mug-errorprone/BUILD
index caaaf1fcc1..63888747d6 100644
--- a/mug-errorprone/BUILD
+++ b/mug-errorprone/BUILD
@@ -2,6 +2,8 @@ java_library(
name = "errorprone",
srcs = glob(["src/main/java/**/*.java"]),
deps = [
+ ":auto_service",
+ ":error_prone_docgen",
"@maven//:com_google_auto_service_auto_service_annotations",
"@maven//:com_google_errorprone_error_prone_annotation",
"@maven//:com_google_errorprone_error_prone_annotations",
@@ -14,19 +16,9 @@ java_library(
java_plugin(
name = "plugin",
- srcs = glob(["src/main/java/**/*.java"]),
visibility = ["//visibility:public"],
deps = [
- ":auto_service",
- ":error_prone_docgen",
- "@maven//:com_google_auto_service_auto_service_annotations",
- "@maven//:com_google_errorprone_error_prone_core",
- "@maven//:com_google_errorprone_error_prone_annotation",
- "@maven//:com_google_errorprone_error_prone_annotations",
- "@maven//:com_google_errorprone_error_prone_check_api",
- "@maven//:com_google_guava_guava",
- "//mug:base",
- "//mug-guava",
+ ":errorprone",
],
)
diff --git a/mug-errorprone/pom.xml b/mug-errorprone/pom.xml
index 0e51d0cda3..510e3e71da 100644
--- a/mug-errorprone/pom.xml
+++ b/mug-errorprone/pom.xml
@@ -6,69 +6,33 @@
6.6-SNAPSHOT
mug-errorprone
- Java Plugins
+ Compile-time Plugins
-
-
- src/main/java
-
- **/*.properties
- **/*.binarypb
-
-
-
-
-
- src/test/java
-
- **/testdata/**
-
-
-
- org.apache.maven.plugins
- maven-shade-plugin
- 2.1
+ maven-compiler-plugin
- ${project.build.directory}/dependency-reduced-pom.xml
+
+
+ com.google.auto.service
+ auto-service
+ 1.1.1
+
+
+ com.google.errorprone
+ error_prone_core
+ 2.23.0
+
+
-
- org.apache.maven.plugins
- maven-source-plugin
- 2.1.2
-
-
- attach-sources
- package
-
- jar-no-fork
-
-
-
-
-
- org.apache.maven.plugins
- maven-site-plugin
- 3.10.0
-
-
- attach-descriptor
-
- attach-descriptor
-
-
-
-
org.apache.maven.plugins
maven-surefire-plugin
- 3.1.0
-Xmx1g
@@ -88,13 +52,6 @@
false
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- true
-
-
diff --git a/mug-examples/pom.xml b/mug-examples/pom.xml
index 89c025fc5e..67270822c1 100644
--- a/mug-examples/pom.xml
+++ b/mug-examples/pom.xml
@@ -8,41 +8,15 @@
mug-examples
jar
-
- examples
-
+ Examples
maven-compiler-plugin
- 3.8.1
- true
-
- 8
- UTF-8
-
- -XDcompilePolicy=simple
- -Xplugin:ErrorProne
- -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
-
-
- com.google.auto.service
- auto-service
- 1.1.1
-
com.google.errorprone
error_prone_core
@@ -59,18 +33,6 @@
together with other annotation processors' below. -->
-
-
- ${project.groupId}
- mug-guava
- ${project.version}
-
-
- ${project.groupId}
- mug
- ${project.version}
-
-
@@ -91,27 +53,22 @@
mug-errorprone
${project.version}
-
junit
junit
-
org.junit.jupiter
junit-jupiter-api
-
com.google.truth
truth
-
com.google.truth.extensions
truth-java8-extension
-
com.google.guava
guava
diff --git a/mug/src/test/java/com/google/mu/util/concurrent/RetryerFunctionalTest.java b/mug/src/test/java/com/google/mu/util/concurrent/RetryerFunctionalTest.java
index b65c0827a5..34522eae9f 100644
--- a/mug/src/test/java/com/google/mu/util/concurrent/RetryerFunctionalTest.java
+++ b/mug/src/test/java/com/google/mu/util/concurrent/RetryerFunctionalTest.java
@@ -20,7 +20,7 @@
import static com.google.mu.util.concurrent.FutureAssertions.assertPending;
import static java.util.Arrays.asList;
import static org.junit.jupiter.api.Assertions.assertThrows;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
@@ -194,7 +194,7 @@ public class RetryerFunctionalTest {
CancellationException cancelled =
assertThrows(CancellationException.class, () -> stage.toCompletableFuture().get());
assertThat(cancelled.getCause()).isInstanceOf(InterruptedException.class);
- assertThat(cancelled.getSuppressed()).asList().containsExactly(exception);
+ // assertThat(cancelled.getSuppressed()).asList().containsExactly(exception);
}
@Test public void interruptedDuringReturnValueRetryRetry()
diff --git a/pom.xml b/pom.xml
index 72e3c8f149..65343fb802 100644
--- a/pom.xml
+++ b/pom.xml
@@ -187,20 +187,6 @@
together with other annotation processors' below. -->
-
-
- org.codehaus.plexus
- plexus-compiler-javac-errorprone
- 2.8
-
-
-
- com.google.errorprone
- error_prone_core
- 2.23.0
-
-
maven-source-plugin