Bump Gradle version
[jpf-core.git] / build.gradle
index d105247dc45c3c9f873ae6c64755b118acf44523..c8582eb28bdde00804d462cfb48babc8261ea42a 100644 (file)
@@ -1,10 +1,14 @@
 plugins {
-    id "com.gradle.build-scan" version "1.14"
     id "java"
-    id "jacoco"
     id "eclipse"
 }
 
+def getCurrentVersion() {
+    "DEVELOPMENT-SNAPSHOT"
+}
+
+version = currentVersion
+
 sourceCompatibility = 1.8
 targetCompatibility = 1.8
 
@@ -12,22 +16,10 @@ ext.manifestCommonAttrbutes = manifest {
     attributes(
         "Built-By": System.getProperty("user.name"),
         "Implementation-Vendor": "NASA Ames Research Center",
-        "Implementation-Version": "8.0"
+        "Implementation-Version": version
     )
 }
 
-buildScan {
-    termsOfServiceUrl = 'https://gradle.com/terms-of-service'
-    termsOfServiceAgree = 'yes'
-}
-
-jacocoTestReport {
-    reports {
-        xml.enabled = true
-        html.enabled = false
-    }
-}
-
 repositories {
     mavenCentral()
 }
@@ -136,7 +128,7 @@ task srcDist(type: Zip) {
     description = "Builds the source distribution."
 
     baseName = project.name
-    version = "git rev-parse --short HEAD".execute().text.trim()
+    version = project.version
     classifier = "src"
     extension = "zip"
 
@@ -162,7 +154,7 @@ task dist(type: Zip) {
     description = "Builds binary distribution."
 
     baseName = project.name
-    version = "git rev-parse --short HEAD".execute().text.trim()
+    version = project.version
     extension = "zip"
 
     destinationDir = buildDir