projects
/
jpf-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3d099c6
)
Fixes #95 - Using 'git desribe --tags' rather than hash
author
Jeanderson Candido
<jeandersonbc@gmail.com>
Thu, 5 Jul 2018 21:06:28 +0000
(18:06 -0300)
committer
Jeanderson Candido
<jeandersonbc@gmail.com>
Thu, 5 Jul 2018 21:06:28 +0000
(18:06 -0300)
build.gradle
patch
|
blob
|
history
diff --git
a/build.gradle
b/build.gradle
index d105247dc45c3c9f873ae6c64755b118acf44523..3d2f0b54bcade4a5381d54e5eb06c4dc4e3ce61c 100644
(file)
--- a/
build.gradle
+++ b/
build.gradle
@@
-5,6
+5,8
@@
plugins {
id "eclipse"
}
id "eclipse"
}
+version = "git describe --tags".execute().text.trim()
+
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 1.8
targetCompatibility = 1.8
@@
-12,7
+14,7
@@
ext.manifestCommonAttrbutes = manifest {
attributes(
"Built-By": System.getProperty("user.name"),
"Implementation-Vendor": "NASA Ames Research Center",
attributes(
"Built-By": System.getProperty("user.name"),
"Implementation-Vendor": "NASA Ames Research Center",
- "Implementation-Version":
"8.0"
+ "Implementation-Version":
version
)
}
)
}
@@
-136,7
+138,7
@@
task srcDist(type: Zip) {
description = "Builds the source distribution."
baseName = project.name
description = "Builds the source distribution."
baseName = project.name
- version =
"git rev-parse --short HEAD".execute().text.trim()
+ version =
project.version
classifier = "src"
extension = "zip"
classifier = "src"
extension = "zip"
@@
-162,7
+164,7
@@
task dist(type: Zip) {
description = "Builds binary distribution."
baseName = project.name
description = "Builds binary distribution."
baseName = project.name
- version =
"git rev-parse --short HEAD".execute().text.trim()
+ version =
project.version
extension = "zip"
destinationDir = buildDir
extension = "zip"
destinationDir = buildDir