Skip to content

Commit

Permalink
fixing typo in version
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmathus committed May 21, 2020
1 parent 2faf885 commit 533bdba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.0-bf4c87fdedb98bc02cb305ac9d94740e1c9fc8a4-a025e5783c642b67afda2a32f63a7d5d1ea17ed6
4.1.0-2faf885816f286b1d7feb581a90fd0ba38488f73-2faf885816f286b1d7feb581a90fd0ba38488f73
4 changes: 1 addition & 3 deletions gradle/version.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ ext {
// isSnapshot = describedCommit.matches(".*-[0-9]+-g[0-9a-f]{7}")
// version = describedCommit.replaceAll("(.*)-[0-9]+-g[0-9a-f]{7}(.*)", '$1$2') + (isSnapshot ? "-SNAPSHOT" : "")

if(rev != revision){
String minor=version.substring(version.lastIndexOf('.'));
version = version.substring(0,version.lastIndexOf('.'))+"."+minor;
if(rev != revision){
File file = new File("gradle/version")
file.write(version+"-"+revision+"-"+masterRevision)
println file.text
Expand Down

0 comments on commit 533bdba

Please sign in to comment.