Skip to content

Commit

Permalink
Merge pull request #10 from rundeck-plugins/enh/axion
Browse files Browse the repository at this point in the history
Add axion release gradle plugin to set version
  • Loading branch information
gschueler authored Aug 13, 2020
2 parents 46e3c43 + 28b11ab commit ad8d530
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
21 changes: 21 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Release

Uses [axion release](https://axion-release-plugin.readthedocs.io/en/latest/) plugin.

./gradlew release

If you need to release with a SNAPSHOT dependency:

./gradlew release -Prelease.disableChecks

Otherwise, axion-release will fail the prerelease check. Only do this for testing.

## Next minor version

./gradlew markNextVersion -Prelease.incrementer=incrementMinor

Updates minor version without releasing, e.g. 0.1.x-SNAPSHOT becomes 0.2.0-SNAPSHOT

## Force version

./gradlew release -Prelease.forceVersion=3.0.0
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

version '1.0.2'
plugins{
id 'pl.allegro.tech.build.axion-release' version '1.9.3'
}


ext.rundeckPluginVersion = '1.2'
Expand All @@ -34,6 +35,13 @@ repositories {
mavenLocal()
}

scmVersion {
tag {
prefix = 'v'
versionSeparator = ''
}
}
version scmVersion.version
configurations {
pluginLibs

Expand Down

0 comments on commit ad8d530

Please sign in to comment.