Skip to content

Commit ad8d530

Browse files
authored
Merge pull request #10 from rundeck-plugins/enh/axion
Add axion release gradle plugin to set version
2 parents 46e3c43 + 28b11ab commit ad8d530

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

RELEASING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Release
2+
3+
Uses [axion release](https://axion-release-plugin.readthedocs.io/en/latest/) plugin.
4+
5+
./gradlew release
6+
7+
If you need to release with a SNAPSHOT dependency:
8+
9+
./gradlew release -Prelease.disableChecks
10+
11+
Otherwise, axion-release will fail the prerelease check. Only do this for testing.
12+
13+
## Next minor version
14+
15+
./gradlew markNextVersion -Prelease.incrementer=incrementMinor
16+
17+
Updates minor version without releasing, e.g. 0.1.x-SNAPSHOT becomes 0.2.0-SNAPSHOT
18+
19+
## Force version
20+
21+
./gradlew release -Prelease.forceVersion=3.0.0

build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
version '1.0.2'
16+
plugins{
17+
id 'pl.allegro.tech.build.axion-release' version '1.9.3'
18+
}
1819

1920

2021
ext.rundeckPluginVersion = '1.2'
@@ -34,6 +35,13 @@ repositories {
3435
mavenLocal()
3536
}
3637

38+
scmVersion {
39+
tag {
40+
prefix = 'v'
41+
versionSeparator = ''
42+
}
43+
}
44+
version scmVersion.version
3745
configurations {
3846
pluginLibs
3947

0 commit comments

Comments
 (0)