Reploy new ver

This commit is contained in:
Braydon 2023-11-11 16:10:32 -05:00
parent 2962fa6b6c
commit 6edc85b18e
No known key found for this signature in database
GPG Key ID: A75760DDC13E0D54
2 changed files with 4 additions and 4 deletions

@ -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();