From 72b7365e215fd1755475d41d821f155be2e4f67b Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Thu, 7 Nov 2024 19:11:26 +0100 Subject: [PATCH] Upgrade to Maven 4.0.0-beta-5 (#1187) --- build-plugin/pom.xml | 1 + .../mvndaemon/mvnd/plugin/doc/DocMojo.java | 5 +- client/pom.xml | 4 + common/pom.xml | 5 -- daemon/pom.xml | 15 +--- dist/pom.xml | 1 + .../mvnd/junit/MvndTestExtension.java | 5 +- logging/pom.xml | 81 ------------------- pom.xml | 4 +- 9 files changed, 15 insertions(+), 106 deletions(-) diff --git a/build-plugin/pom.xml b/build-plugin/pom.xml index 9012985c1..5a9717e80 100644 --- a/build-plugin/pom.xml +++ b/build-plugin/pom.xml @@ -54,6 +54,7 @@ org.apache.maven.plugins maven-plugin-plugin + ${required-maven.version} mvnd-build org.apache.maven:maven-plugin-api diff --git a/build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java b/build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java index 0b089817b..e28849164 100644 --- a/build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java +++ b/build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java @@ -37,7 +37,6 @@ import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugin.logging.Log; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; @@ -73,10 +72,10 @@ public class DocMojo extends AbstractMojo { boolean skip; @Override + @SuppressWarnings("deprecation") public void execute() throws MojoExecutionException, MojoFailureException { - final Log log = getLog(); if (skip) { - log.info(getClass().getSimpleName() + " skipped per skip parameter"); + getLog().info(getClass().getSimpleName() + " skipped per skip parameter"); return; } diff --git a/client/pom.xml b/client/pom.xml index 46cc1be1e..0cead8535 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -35,6 +35,10 @@ + + org.apache.maven + maven-embedder + org.apache.maven.daemon mvnd-common diff --git a/common/pom.xml b/common/pom.xml index 9d6185b5e..9385f25cf 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -55,11 +55,6 @@ junit-jupiter test - - org.slf4j - slf4j-simple - test - diff --git a/daemon/pom.xml b/daemon/pom.xml index 872e14d97..7c07b30dc 100644 --- a/daemon/pom.xml +++ b/daemon/pom.xml @@ -70,20 +70,6 @@ takari-smart-builder - - - org.slf4j - log4j-over-slf4j - - - org.slf4j - jcl-over-slf4j - - - org.slf4j - jul-to-slf4j - - org.jline jline-terminal @@ -97,6 +83,7 @@ com.google.inject guice + classes diff --git a/dist/pom.xml b/dist/pom.xml index 8dd42f7b1..5b1536509 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -59,6 +59,7 @@ com.google.inject guice + classes provided diff --git a/integration-tests/src/test/java/org/mvndaemon/mvnd/junit/MvndTestExtension.java b/integration-tests/src/test/java/org/mvndaemon/mvnd/junit/MvndTestExtension.java index 0d382de04..60abaa030 100644 --- a/integration-tests/src/test/java/org/mvndaemon/mvnd/junit/MvndTestExtension.java +++ b/integration-tests/src/test/java/org/mvndaemon/mvnd/junit/MvndTestExtension.java @@ -28,7 +28,6 @@ import java.util.Objects; import java.util.stream.Stream; -import org.apache.log4j.Logger; import org.junit.jupiter.api.extension.AfterAllCallback; import org.junit.jupiter.api.extension.BeforeAllCallback; import org.junit.jupiter.api.extension.BeforeEachCallback; @@ -39,13 +38,15 @@ import org.mvndaemon.mvnd.common.DaemonRegistry; import org.mvndaemon.mvnd.common.Environment; import org.mvndaemon.mvnd.common.TimeUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import static org.mvndaemon.mvnd.junit.TestParameters.TEST_MIN_THREADS; import static org.mvndaemon.mvnd.junit.TestUtils.deleteDir; public class MvndTestExtension implements BeforeAllCallback, BeforeEachCallback, AfterAllCallback { - private static final Logger LOG = Logger.getLogger(MvndTestExtension.class); + private static final Logger LOG = LoggerFactory.getLogger(MvndTestExtension.class); /** A placeholder to replace with a temporary directory outside of the current source tree */ public static final String TEMP_EXTERNAL = "${temp.external}"; diff --git a/logging/pom.xml b/logging/pom.xml index a104c5a9f..64c9f4343 100644 --- a/logging/pom.xml +++ b/logging/pom.xml @@ -31,91 +31,10 @@ Maven Daemon - Logging - - org.apache.maven - maven-embedder - - - org.apache.maven - maven-jline - org.apache.maven maven-logging - - org.eclipse.sisu - org.eclipse.sisu.inject - provided - - - org.apache.maven.shared - maven-shared-utils - - - - - org.slf4j - log4j-over-slf4j - - - org.slf4j - jcl-over-slf4j - - - org.slf4j - jul-to-slf4j - - - - - org.eclipse.sisu - sisu-maven-plugin - - - org.apache.maven.plugins - maven-dependency-plugin - - - extract - - unpack - - - - - org.apache.maven - maven-slf4j-wrapper - ${maven.version} - sources - - - org/apache/maven/logwrapper/*.java - ${project.build.directory}/generated-sources/unpack - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-unpacked-source-dir - - add-source - - - - ${project.build.directory}/generated-sources/unpack - - - - - - - - diff --git a/pom.xml b/pom.xml index e58e0d85a..9d47d2a2a 100644 --- a/pom.xml +++ b/pom.xml @@ -83,7 +83,8 @@ 4.0.23 2.4.1 3.27.1 - 4.0.0-beta-5-SNAPSHOT + 4.0.0-beta-5 + 3.9.9 2.0.2 @@ -306,6 +307,7 @@ com.google.inject guice 6.0.0 + classes com.google.guava