Skip to content

Commit cc8b667

Browse files
committed
v1.1.0 for real
We **cannot** use `git describe` to generate versions, since you can't just use any arbitrary string as the version with JavaFX's packaging tools. .deb and .rpm builds both fail if you do this on a commit that isn't tagged, or is tagged in a way other than v1.1.0 (for example, release candidates)
1 parent caf22a7 commit cc8b667

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

build.gradle

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@ plugins {
1616
apply plugin: 'nebula-aggregate-javadocs'
1717

1818

19-
/*
20-
* Gets the version name from the latest Git tag
21-
* http://ryanharter.com/blog/2013/07/30/automatic-versioning-with-git-and-gradle/
22-
*/
23-
def getVersionName = { ->
24-
def stdout = new ByteArrayOutputStream()
25-
exec {
26-
commandLine 'git', 'describe', '--tags'
27-
standardOutput = stdout
28-
}
29-
return stdout.toString().trim().substring(1)
30-
}
31-
3219
allprojects {
3320
apply plugin: 'java'
3421
apply plugin: 'application'
@@ -50,7 +37,7 @@ allprojects {
5037
testCompile group: 'junit', name: 'junit', version: '4.12'
5138
}
5239

53-
version = getVersionName()
40+
version = '1.1.0'
5441

5542
compileJava {
5643
options.compilerArgs << "-g"

0 commit comments

Comments
 (0)