Reploy new ver
This commit is contained in:
parent
2962fa6b6c
commit
6edc85b18e
2
pom.xml
2
pom.xml
@ -7,7 +7,7 @@
|
||||
<name>Maven Git Versioning</name>
|
||||
<groupId>me.braydon</groupId>
|
||||
<artifactId>git-versioning-maven-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<version>1.0.2</version>
|
||||
<packaging>maven-plugin</packaging>
|
||||
|
||||
<properties>
|
||||
|
@ -65,9 +65,7 @@ public final class GitUtils {
|
||||
continue;
|
||||
}
|
||||
walk.dispose(); // Dispose of the rev walk
|
||||
|
||||
// Return the git data
|
||||
return new AbstractMap.SimpleEntry<>(latestCommit.getName(), commitsSinceLastTag);
|
||||
return new AbstractMap.SimpleEntry<>(latestCommit.getName(), commitsSinceLastTag); // Return the git data
|
||||
}
|
||||
commitsSinceLastTag++; // Increment commits since last tag
|
||||
if (commit.getParentCount() > 0) { // Get the parent commit
|
||||
@ -76,6 +74,8 @@ public final class GitUtils {
|
||||
break;
|
||||
}
|
||||
}
|
||||
walk.dispose(); // Dispose of the rev walk
|
||||
return new AbstractMap.SimpleEntry<>(latestCommit.getName(), commitsSinceLastTag); // Return the git data
|
||||
} catch (IOException | GitAPIException ex) {
|
||||
System.err.println("Failed fetching git data:");
|
||||
ex.printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user