Skip to content

Commit

Permalink
Merge pull request #66 from basil/plexus-component-metadata
Browse files Browse the repository at this point in the history
Migrate from deprecated Plexus Components to non-deprecated JSR 330
  • Loading branch information
jglick authored Jun 29, 2023
2 parents ac6e8ea + 6b71eee commit d12e9eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 5 additions & 4 deletions git-changelist-maven-extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
<version>2.1.1</version>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
<version>0.3.5</version>
<executions>
<execution>
<id>generate-index</id>
<goals>
<goal>generate-metadata</goal>
<goal>main-index</goal>
</goals>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import org.apache.maven.AbstractMavenLifecycleParticipant;
import org.apache.maven.MavenExecutionException;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
import org.codehaus.plexus.logging.Logger;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.Status;
Expand All @@ -59,13 +60,14 @@
* @see <a href="https://maven.apache.org/maven-ci-friendly.html">Maven CI Friendly Versions</a>
* @see <a href="https://maven.apache.org/docs/3.3.1/release-notes.html#Core_Extensions">Core Extensions</a>
*/
@Component(role=AbstractMavenLifecycleParticipant.class, hint="git-changelist-maven-extension")
@Named("git-changelist-maven-extension")
@Singleton
public class Main extends AbstractMavenLifecycleParticipant {

private static final String IGNORE_DIRT = "ignore.dirt";
private static final int ABBREV_LENGTH = 12;

@Requirement
@Inject
private Logger log;

@Override
Expand Down

0 comments on commit d12e9eb

Please sign in to comment.