Skip to content

Commit 61a6e48

Browse files
authored
Merge pull request #5034 from volodya-lombrozo/5012-remove-central-class
refactor(#5012): remove deprecated Central class from eo-maven-plugin
2 parents c8f2e3e + ee9387e commit 61a6e48

3 files changed

Lines changed: 8 additions & 137 deletions

File tree

eo-maven-plugin/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,6 @@
140140
<version>3.9.15</version>
141141
<scope>test</scope>
142142
</dependency>
143-
<dependency>
144-
<groupId>org.twdata.maven</groupId>
145-
<artifactId>mojo-executor</artifactId>
146-
<version>2.4.1</version>
147-
</dependency>
148143
<dependency>
149144
<groupId>com.google.code.findbugs</groupId>
150145
<artifactId>jsr305</artifactId>
@@ -232,11 +227,6 @@
232227
<!-- This dependency must precede jcabi-maven-slf4j in order
233228
to enable configurable Log4j logging during testing -->
234229
</dependency>
235-
<dependency>
236-
<groupId>org.codehaus.plexus</groupId>
237-
<artifactId>plexus-utils</artifactId>
238-
<version>3.6.1</version>
239-
</dependency>
240230
<dependency>
241231
<groupId>org.codehaus.plexus</groupId>
242232
<artifactId>plexus-xml</artifactId>

eo-maven-plugin/src/main/java/org/eolang/maven/Central.java

Lines changed: 0 additions & 126 deletions
This file was deleted.

eo-maven-plugin/src/test/java/org/eolang/maven/MjCleanTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import java.io.IOException;
1111
import java.nio.file.Files;
1212
import java.nio.file.Path;
13+
import java.util.function.BiConsumer;
14+
import org.apache.maven.model.Dependency;
1315
import org.cactoos.set.SetOf;
1416
import org.hamcrest.MatcherAssert;
1517
import org.hamcrest.Matchers;
@@ -54,7 +56,12 @@ void makesFullCompilingLifecycleSuccessfully(@Mktmp final Path temp) throws IOEx
5456
.with("placed", temp.resolve("list").toFile())
5557
.with("cache", temp.resolve("cache/parsed").toFile())
5658
.with("skipZeroVersions", true)
57-
.with("central", Central.EMPTY)
59+
.with(
60+
"central",
61+
(BiConsumer<Dependency, Path>) (dependency, path) -> {
62+
assert dependency != null;
63+
}
64+
)
5865
.execute(MjRegister.class)
5966
.execute(MjAssemble.class)
6067
.execute(MjClean.class);

0 commit comments

Comments
 (0)