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