Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #9 from mickeyreiss/version-in-name
Browse files Browse the repository at this point in the history
Add version to sanitized library name
  • Loading branch information
pgr0ss authored Oct 26, 2016
2 parents bdb7e59 + 8644dae commit caa0a69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>braintree</groupId>
<artifactId>bazel-deps</artifactId>
<version>1.0-SNAPSHOT</version>
<version>2.0-SNAPSHOT</version>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/braintree/BazelDeps.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static void printForBuildFile(Artifact artifact, Set<Artifact> dependenc
}

private static String artifactName(Artifact artifact) {
return sanitizeName(artifact.getGroupId()) + "_" + sanitizeName(artifact.getArtifactId());
return sanitizeName(artifact.getGroupId()) + "_" + sanitizeName(artifact.getArtifactId()) + "_" + sanitizeName(artifact.getVersion());
}

private static String sanitizeName(String name) {
Expand Down

0 comments on commit caa0a69

Please sign in to comment.