Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
Upgrade to the current version of the release plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
asnare committed Apr 30, 2017
1 parent a993381 commit 47d372e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ buildscript {
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '1.2.4'
id 'pl.allegro.tech.build.axion-release' version '1.4.1'
id 'pl.allegro.tech.build.axion-release' version '1.6.0'
}

apply plugin: 'java'
Expand All @@ -42,17 +42,11 @@ apply plugin: 'groovy'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'pl.allegro.tech.build.axion-release'

import com.github.zafarkhaja.semver.Version

scmVersion {
tag {
prefix = rootProject.name
}
versionCreator { versionFromTag, scmPosition ->
scmPosition.onTag || scmPosition.branch.startsWith('support/')
? versionFromTag
: Version.valueOf(versionFromTag).incrementMinorVersion()
}
versionIncrementer 'incrementMinorIfNotOnRelease', [releaseBranchPattern: 'support/.*']
}

defaultTasks 'clean', 'build'
Expand Down

0 comments on commit 47d372e

Please sign in to comment.