Added the ability to specify the version via the command line.

This commit is contained in:
Erik C. Thauvin 2019-04-10 10:42:39 -07:00
parent 8d423a506a
commit 16d1a06571
2 changed files with 21 additions and 19 deletions

View file

@ -8,7 +8,7 @@ buildscript {
mavenLocal()
}
dependencies {
classpath "net.thauvin.erik.gradle:semver:0.9.9-beta"
classpath "net.thauvin.erik.gradle:semver:1.0.0"
}
}
@ -20,7 +20,7 @@ mainClassName = 'App'
version = 1.0
def f = new File("test.properties")
def f = new File("version.properties")
dependencies {
@ -30,15 +30,6 @@ repositories {
jcenter()
}
clean {
delete fileTree(dir: "$projectDir", include: "*.properties")
}
incrementPatch {
doFirst {
println("[Gradle] exists: " + f.exists() + ", canRead: " + f.canRead())
}
}
incrementBuildMeta {
doFirst {
@ -48,7 +39,6 @@ incrementBuildMeta {
}
run {
//dependsOn("incrementPatch")
doFirst {
println("Version: $version")
args = [f.name]