Skip to content

Commit

Permalink
Version 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davideas committed Nov 15, 2017
1 parent 0cd2a5f commit 6b49742
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,31 @@ _major_: User defined value for breaking changes.<br>
_minor_: User defined value for new features, but backwards compatible.<br>
_patch_: User defined value (or auto-generated value) for backwards compatible bug fixes only.<br>
_preRelease_: Optional, user defined value for pre-releases suffix.<br>
Auto-skip versioning when 'clean', 'test' or 'grabverSkip' tasks are enqueued.
_dependsOn_: Optional, saving versioning file depends by the task-name specified here (default: _compileJava, assembleDebug & assembleRelease_).<br>

**build** - Increases at each build.<br>
**code** - Increases at each release.<br>
**patch** - If not specified by user, increases at each release, but it auto resets back to 0 when _Minor_ or _Major_ version changes or if _preRelease_ is set.<br>
**minor** - User defined value, it must be coherent(=0) if you increase _Major_ version.

Auto-skip versioning when 'clean', 'test' or 'grabverSkip' tasks are enqueued.

## Installation
Configure script dependencies in the project _build.gradle_ file:
``` groovy
buildscript {
repositories {
// Please Use jcenter for dependecies: mavenCentral is not enough
// non android project: please use jcenter for dependecies (mavenCentral is not enough):
jcenter()
// and (for now)
// but for now(!) until publication is done, please use:
maven { url "http://dl.bintray.com/davideas/maven" }
// or Gradle Plugins Repository
// or Gradle Plugins Repository:
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'eu.davidea:grabver:0.6.0'
classpath 'eu.davidea:grabver:0.7.0'
// or with Gradle Plugins Repository
classpath "gradle.plugin.eu.davidea:grabver:0.6.0"
classpath "gradle.plugin.eu.davidea:grabver:0.7.0"
}
}
```
Expand All @@ -60,6 +62,7 @@ versioning {
minor = 0
// optional (number)
patch = 7
dependsOn = "<task-name>"
// optional (any string)
preRelease = 'RC1'
}
Expand Down
2 changes: 1 addition & 1 deletion build-test.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
}
//noinspection GroovyAssignabilityCheck
dependencies {
classpath 'eu.davidea:grabver:0.6.0'
classpath 'eu.davidea:grabver:0.7.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ext {

// Library Repository
libraryName = 'GrabVer'
libraryVersion = '0.6.0'
libraryVersion = '0.7.0'
displayName = 'Gradle Automatic Build Versioning Plugin'
libraryDescription = 'An easy Gradle plugin that follows semver.org rules to automatically generate the Patch version, Build number and Code version, while Major, Minor and Pre-Release suffix remain under our control.'
libraryLabels = ['semver', 'version', 'versioning', 'build-versioning', 'automatic-versioning', 'intellij-idea', 'android-studio', 'auto-reset']
Expand Down
2 changes: 1 addition & 1 deletion module_a/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenLocal()
}
dependencies {
classpath 'eu.davidea:grabver:0.6.0'
classpath 'eu.davidea:grabver:0.7.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion module_b/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenLocal()
}
dependencies {
classpath 'eu.davidea:grabver:0.6.0'
classpath 'eu.davidea:grabver:0.7.0'
}
}

Expand Down

0 comments on commit 6b49742

Please sign in to comment.