From 84108b60c23f3c541ddfb9285131b0f029669bea Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 21 Apr 2020 08:16:06 +0100 Subject: [PATCH] force version --- build.gradle | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/build.gradle b/build.gradle index ae8b34e44..787e878ac 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,3 @@ -import org.ajoberstar.grgit.Grgit - buildscript { repositories { mavenCentral() @@ -25,27 +23,7 @@ plugins { group = "com.plotsquared" -def rootVersion = "5" -def revision = "" -def buildNumber = "" -def date = "" -ext { - git = Grgit.open(dir: new File(rootDir.toString() + "/.git")) - date = git.head().getDate().format("yy.MM.dd") - revision = "-${git.head().abbreviatedId}" - parents = git.head().parentIds - if (project.hasProperty("buildnumber")) { - buildNumber = "$buildnumber" - } else { - index = -2042 // Offset to match CI - for (; parents != null && !parents.isEmpty(); index++) { - parents = git.getResolve().toCommit(parents.get(0)).getParentIds() - } - buildNumber = "${index}" - } -} - -version = String.format("%s.%s", rootVersion, buildNumber) +version = "5.10.0" description = rootProject.name