This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch guava in repository https://gitbox.apache.org/repos/asf/maven-build-cache-extension.git
commit 07b472dc936c4fb532474a571719b5649f596fc2 Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Fri Jan 16 08:24:55 2026 -0500 Replace Guava with JDK methods --- .../apache/maven/buildcache/its/ForkedExecutionCoreExtensionTest.java | 4 ++-- .../java/org/apache/maven/buildcache/its/SkipBuildExtensionTest.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/maven/buildcache/its/ForkedExecutionCoreExtensionTest.java b/src/test/java/org/apache/maven/buildcache/its/ForkedExecutionCoreExtensionTest.java index 52a7a25..eaeff76 100644 --- a/src/test/java/org/apache/maven/buildcache/its/ForkedExecutionCoreExtensionTest.java +++ b/src/test/java/org/apache/maven/buildcache/its/ForkedExecutionCoreExtensionTest.java @@ -21,8 +21,8 @@ import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; +import java.util.Collections; -import com.google.common.collect.Lists; import org.apache.commons.io.FileUtils; import org.apache.maven.buildcache.its.junit.IntegrationTest; import org.apache.maven.it.VerificationException; @@ -61,7 +61,7 @@ void testForkedExecution(Verifier verifier) throws VerificationException { verifier.setLogFileName("../log-1.txt"); verifier.setMavenDebug(true); verifier.setCliOptions( - Lists.newArrayList("-D" + CACHE_LOCATION_PROPERTY_NAME + "=" + tempDirectory.toAbsolutePath())); + Collections.singletonList("-D" + CACHE_LOCATION_PROPERTY_NAME + "=" + tempDirectory.toAbsolutePath())); verifier.executeGoal("verify"); verifier.verifyTextInLog("Started forked project"); // forked execution actually runs diff --git a/src/test/java/org/apache/maven/buildcache/its/SkipBuildExtensionTest.java b/src/test/java/org/apache/maven/buildcache/its/SkipBuildExtensionTest.java index 7b26021..725c262 100644 --- a/src/test/java/org/apache/maven/buildcache/its/SkipBuildExtensionTest.java +++ b/src/test/java/org/apache/maven/buildcache/its/SkipBuildExtensionTest.java @@ -26,7 +26,6 @@ import org.apache.maven.it.Verifier; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.testcontainers.shaded.com.google.common.collect.Lists; import static org.apache.maven.buildcache.util.LogFileUtils.findFirstLineContainingTextsInLogs; @@ -50,7 +49,7 @@ void multipleGoals(Verifier verifier) throws VerificationException { verifier.setLogFileName("../log-2.txt"); String[] goals = {"clean", "install"}; - List<String> goalsList = Lists.newArrayList(goals); + List<String> goalsList = Arrays.asList(goals); verifier.executeGoals(goalsList); verifier.verifyErrorFreeLog();
