Skip to content

Commit

Permalink
update dependency to npefix
Browse files Browse the repository at this point in the history
  • Loading branch information
monperrus committed Apr 11, 2019
1 parent 57d630c commit c37ddce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .travis/travis-deploy.sh
Expand Up @@ -7,6 +7,10 @@ if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then

# pushing snapshot to https://oss.sonatype.org/content/repositories/snapshots/fr/inria/repairnator/
mvn deploy -DskipTests

exit

# deploy to Dockerhub
echo "$DOCKER_PASSWORD" | docker login -u repairnator --password-stdin
if [ "$TRAVIS_TAG" = "$TRAVIS_BRANCH" ]; then
TAG=$TRAVIS_TAG
Expand Down
2 changes: 1 addition & 1 deletion maven-repair/pom.xml
Expand Up @@ -99,7 +99,7 @@
<version>0.0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>fr.inria.spirals</groupId>
<groupId>fr.inria.gforge.spirals</groupId>
<artifactId>npefix</artifactId>
<version>0.7</version>
<exclusions>
Expand Down
Expand Up @@ -58,7 +58,6 @@
requiresDependencyResolution = ResolutionScope.TEST)
public class NPEFixMojo extends AbstractRepairMojo {

private static String HARDCODED_NPEFIX_VERSION = "0.7";
/**
* Location of the file.
*/
Expand Down Expand Up @@ -272,7 +271,7 @@ private String classpath(List<URL> dependencies) {
URL s = dependencies.get(i);
sb.append(s.getPath()).append(File.pathSeparatorChar);
}
final Artifact artifact =artifactFactory.createArtifact("fr.inria.spirals","npefix", HARDCODED_NPEFIX_VERSION, null, "jar");
final Artifact artifact =artifactFactory.createArtifact("fr.inria.gforge.spirals","npefix", "0.7", null, "jar");
File file = new File(localRepository.getBasedir() + "/" + localRepository.pathOf(artifact));

sb.append(file.getAbsoluteFile());
Expand Down
Expand Up @@ -59,10 +59,6 @@
requiresDependencyResolution = ResolutionScope.TEST)
public class NPEFixSafeMojo extends AbstractRepairMojo {

// taking the NpeFix version from Thomas' own Maven Repo
// https://github.com/tdurieux/maven-repository/tree/master/releases/fr/inria/spirals/npefix (release)
// https://github.com/tdurieux/maven-repository/tree/master/snapshots/fr/inria/spirals/npefix (snapshot)
private static String HARDCODED_NPEFIX_VERSION = "0.8-SNAPSHOT";
/**
* Location of the file.
*/
Expand Down Expand Up @@ -253,7 +249,7 @@ private String classpath(List<URL> dependencies) {
URL s = dependencies.get(i);
sb.append(s.getPath()).append(File.pathSeparatorChar);
}
final Artifact artifact =artifactFactory.createArtifact("fr.inria.spirals","npefix", HARDCODED_NPEFIX_VERSION, null, "jar");
final Artifact artifact =artifactFactory.createArtifact("fr.inria.gforge.spirals","npefix", "0.7", null, "jar");
File file = new File(localRepository.getBasedir() + "/" + localRepository.pathOf(artifact));

sb.append(file.getAbsoluteFile());
Expand Down

0 comments on commit c37ddce

Please sign in to comment.