Skip to content

Commit

Permalink
Version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davideas committed Jul 27, 2017
1 parent 69644ea commit 4e1491b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build-test.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ versioning {
major 1
minor 2
}
println("TEST - VersionCode: " + versioning.versionCode)
println("TEST - VersionName: " + versioning.versionName)
println("TEST - VersionCode: " + versioning.code)
println("TEST - VersionName: " + versioning.name)
println("TEST - FullVersionName: " + versioning.fullVersionName)
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
buildscript {
repositories {
mavenLocal()
maven {
url 'https://plugins.gradle.org/m2/'
}
Expand All @@ -17,6 +18,7 @@ apply plugin: 'maven'

repositories {
jcenter()
mavenLocal()
}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions module_a/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ versioning {
major 1
minor 1
}
println("MODULE_A - VersionCode: " + versioning.versionCode)
println("MODULE_A - VersionName: " + versioning.versionName)
println("MODULE_A - VersionCode: " + versioning.code)
println("MODULE_A - VersionName: " + versioning.name)
println("MODULE_A - FullVersionName: " + versioning.fullVersionName)
4 changes: 2 additions & 2 deletions module_b/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ versioning {
major 2
minor 2
}
println("MODULE_B - VersionCode: " + versioning.versionCode)
println("MODULE_B - VersionName: " + versioning.versionName)
println("MODULE_B - VersionCode: " + versioning.code)
println("MODULE_B - VersionName: " + versioning.name)
println("MODULE_B - FullVersionName: " + versioning.fullVersionName)

Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class VersioningExtension {
(propMajor > 0 ? propMajor : major) +
"." + (propMinor > 0 ? propMinor : minor) +
"." + patch +
(preRelease != null ? "-" + preRelease : "") +
(preRelease != null && !preRelease.isEmpty() ? "-" + preRelease : "") +
" #" + build +
" code=" + code
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/groovy/eu/davidea/gradle/GrabVerTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ class GrabVerTest {
*/
private void printResults(String title) {
println("TEST - " + title)
println("TEST - versionCode=" + project.versioning.versionCode)
println("TEST - versionName=" + project.versioning.versionName)
println("TEST - code=" + project.versioning.code)
println("TEST - name=" + project.versioning.name)
println("TEST - fullVersionName=" + project.versioning.fullVersionName)
println("TEST - " + project.versioning)
}
Expand Down

0 comments on commit 4e1491b

Please sign in to comment.