Skip to content

Commit c0a03fb

Browse files
committed
Use axion release plug-in
Without this configuration Gradle cannot find the currentVersion task and the get-version-details workflow step fails.
1 parent d2d684c commit c0a03fb

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

build.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// Configure version based on Git tags
2+
apply plugin: 'pl.allegro.tech.build.axion-release'
3+
scmVersion {
4+
releaseOnlyOnReleaseBranches = true
5+
releaseBranchNames = ['main']
6+
unshallowRepoOnCI.set(true)
7+
versionCreator('simple')
8+
repository {
9+
remote.set('origin')
10+
}
11+
tag {
12+
prefix.set('')
13+
}
14+
}
15+
116
allprojects {
217
// Apply common project setup
318
apply from: "${project.rootDir}/project.gradle"

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id "com.cherryperry.gradle-file-encrypt" version "2.0.3" apply false
33
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.3" apply false
44
id 'cz.habarta.typescript-generator' version "$typescriptGeneratorVersion" apply false
5+
id 'pl.allegro.tech.build.axion-release' version '1.18.16' apply false
56
}
67

78
rootProject.name = "$projectName"

0 commit comments

Comments
 (0)