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
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()
}
description = "Builds the source distribution."
baseName = project.name
- version = "git rev-parse --short HEAD".execute().text.trim()
+ version = project.version
classifier = "src"
extension = "zip"
description = "Builds binary distribution."
baseName = project.name
- version = "git rev-parse --short HEAD".execute().text.trim()
+ version = project.version
extension = "zip"
destinationDir = buildDir