Skip to content

Commit

Permalink
Migrate tycho-sourceref-jgit to JSR330
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Jun 19, 2024
1 parent 8a012d6 commit 253a87e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
17 changes: 16 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<pluginToolsVersion>3.13.1</pluginToolsVersion>
<jgit-version>6.10.0.202406032230-r</jgit-version>
<maven-version>3.9.8</maven-version>
<sisu-version>0.9.0.M2</sisu-version>
<minimal-maven-version>3.9.0</minimal-maven-version>
<!-- When updating surefire version, double-check Import-Package statements generated by bnd-maven-plugin and possibly adapt instructions in various bnd.bnd files -->
<surefire-version>3.3.0</surefire-version>
Expand Down Expand Up @@ -136,7 +137,7 @@
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.plexus</artifactId>
<!-- classes from plexus-container-default come with the maven installation -->
<version>0.9.0.M2</version>
<version>${sisu-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -510,6 +511,20 @@
<artifactId>maven-invoker-plugin</artifactId>
<version>3.7.0</version>
</plugin>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
<version>${sisu-version}</version>
<executions>
<execution>
<id>index-project</id>
<goals>
<goal>main-index</goal>
<goal>test-index</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
6 changes: 3 additions & 3 deletions tycho-extras/tycho-sourceref-jgit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
</plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
import java.io.IOException;
import java.net.URI;

import javax.inject.Named;
import javax.inject.Singleton;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.component.annotations.Component;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.errors.AmbiguousObjectException;
Expand All @@ -30,7 +32,8 @@
import org.eclipse.tycho.packaging.sourceref.ScmUrl;
import org.eclipse.tycho.packaging.sourceref.SourceReferencesProvider;

@Component(role = SourceReferencesProvider.class, hint = "git")
@Named("git")
@Singleton
public class JGitSourceReferencesProvider implements SourceReferencesProvider {

@Override
Expand Down

0 comments on commit 253a87e

Please sign in to comment.