projects
/
jpf-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
611ec46
)
modified: build.gradle: Put JPF version into JAR metadata by retrieving latest...
author
Cyrille Artho
<artho@kth.se>
Wed, 14 Nov 2018 23:30:23 +0000
(09:30 +1000)
committer
Cyrille Artho
<artho@kth.se>
Wed, 14 Nov 2018 23:30:23 +0000
(09:30 +1000)
build.gradle
patch
|
blob
|
history
diff --git
a/build.gradle
b/build.gradle
index 03f03efeb833ba57c28d5f5ef84603c0bf4119ed..26ff9ba74b6d0990113f8bc4660cd9943672547b 100644
(file)
--- a/
build.gradle
+++ b/
build.gradle
@@
-1,11
+1,5
@@
apply plugin: "java"
apply plugin: "java"
-def getCurrentVersion() {
- "DEVELOPMENT-SNAPSHOT"
-}
-
-version = currentVersion
-
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 1.8
targetCompatibility = 1.8
@@
-13,15
+7,31
@@
repositories {
mavenCentral()
}
mavenCentral()
}
+buildscript {
+ repositories {
+ maven {
+ url "https://plugins.gradle.org/m2/"
+ }
+ }
+ dependencies {
+ classpath "gradle.plugin.com.palantir.gradle.gitversion:gradle-git-version:0.11.0"
+ }
+}
+
dependencies {
testImplementation "junit:junit:4.12"
}
dependencies {
testImplementation "junit:junit:4.12"
}
+apply plugin: "com.palantir.git-version"
+version gitVersion()
+def gitDetails = versionDetails()
+
ext.manifestCommonAttrbutes = manifest {
attributes(
"Built-By": System.getProperty("user.name"),
"Implementation-Vendor": "NASA Ames Research Center",
ext.manifestCommonAttrbutes = manifest {
attributes(
"Built-By": System.getProperty("user.name"),
"Implementation-Vendor": "NASA Ames Research Center",
- "Implementation-Version": version
+ "Specification-Version": gitDetails.lastTag,
+ "Implementation-Version": gitDetails.gitHashFull
)
}
)
}