Skip to content

Commit

Permalink
Release version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rockerhieu committed Sep 19, 2016
1 parent e93efbe commit 0d641a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
buildscript {
repositories {
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
classpath 'io.github.rockerhieu:versionberg:1.0.0-SNAPSHOT'
classpath 'io.github.rockerhieu:versionberg:1.0.0'
}
}

Expand All @@ -15,8 +14,8 @@ versionberg {
major 1
minor 0
patch 10
nameTemplate '${major}.${minor}-SNAPSHOT'
codeTemplate '${commitCount}'
nameTemplate '${major}.${minor}.${commitSha}-SNAPSHOT'
codeTemplate '(((${major} * 100) + ${minor}) * 100) * 100000 + ${build}'
}

version = versionberg.name
Expand Down
2 changes: 1 addition & 1 deletion versionberg/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# DEALINGS IN THE SOFTWARE.
#

VERSION_NAME=1.0.0-SNAPSHOT
VERSION_NAME=1.0.0
GROUP=io.github.rockerhieu
POM_DESCRIPTION=Gradle plugin for versioning your library/application on every git commit
POM_URL=https://github.com/rockerhieu/Versionberg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class Versionberg {
def minor = 0
def patch = 0
def build = Git.commitCount
def nameTemplate = '${major}.${minor}.${patch}.${commitSha}'
def codeTemplate = '(((${major} * 100) + ${minor}) * 100) * 100000 + ${build}'
def nameTemplate = '${major}.${minor}.${patch}.${build}'
def codeTemplate = '${build}'

private def engine = new groovy.text.SimpleTemplateEngine()

Expand Down

0 comments on commit 0d641a4

Please sign in to comment.