Skip to content

Commit

Permalink
Cleanup project and fix version plugin dependency (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fameing authored Oct 26, 2023
1 parent dc2080b commit 6189722
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 67 deletions.
2 changes: 1 addition & 1 deletion examples/mixin-maven-plugin/mixin-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<name>${project.groupId}:${project.artifactId}</name>

<properties>
<version.com.playtika.maven.plugins>1.0.0-SNAPSHOT</version.com.playtika.maven.plugins>
<version.com.playtika.maven.plugins>1.0.1</version.com.playtika.maven.plugins>
</properties>
<modules>
<module>mixin1</module>
Expand Down
22 changes: 0 additions & 22 deletions mixin-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven-core.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>${plexus-utils.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand All @@ -50,7 +48,6 @@
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
<version>${plexus-component-metadata.version}</version>
<executions>
<execution>
<id>generate-metadata</id>
Expand Down Expand Up @@ -89,25 +86,6 @@
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.apache.maven.execution.MavenSession;

public interface ArtifactFetcher {
public Artifact createArtifact(String groupId, String artifactId, String type, String classifier, String version);
Artifact createArtifact(String groupId, String artifactId, String type, String classifier, String version);

public void resolve(Artifact artifact, MavenSession mavenSession) throws ArtifactResolutionException;
void resolve(Artifact artifact, MavenSession mavenSession) throws ArtifactResolutionException;
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public void mergeDistributionManagement(Model target, Model source) {
/**
* Fully merges pluginContainers with their plugins, their executions and their configuration
*
* @param targetPlugin
* @param sourcePlugin
* @param targetContainer
* @param sourceContainer
* @param context
*/
private void mergePluginContainers(PluginContainer targetContainer, PluginContainer sourceContainer, Map<Object, Object> context, boolean addTargetPlugin) {
Expand Down
37 changes: 25 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,20 +136,9 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -162,7 +151,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
Expand Down Expand Up @@ -204,6 +192,31 @@

<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
<version>${plexus-component-metadata.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down

0 comments on commit 6189722

Please sign in to comment.