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