Skip to content

Commit

Permalink
Use axion release plug-in
Browse files Browse the repository at this point in the history
Without this configuration the Gradle cannot find the currentVersion task and the get-version-details workflow step fails.
  • Loading branch information
wborn committed Feb 25, 2025
1 parent d2d684c commit 3da9670
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Configure version based on Git tags
apply plugin: 'pl.allegro.tech.build.axion-release'
scmVersion {
releaseOnlyOnReleaseBranches = true
releaseBranchNames = ['main']
unshallowRepoOnCI.set(true)
versionCreator('simple')
repository {
remote.set('origin')
}
tag {
prefix.set('')
}
}

allprojects {
// Apply common project setup
apply from: "${project.rootDir}/project.gradle"
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "com.cherryperry.gradle-file-encrypt" version "2.0.3" apply false
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.3" apply false
id 'cz.habarta.typescript-generator' version "$typescriptGeneratorVersion" apply false
id 'pl.allegro.tech.build.axion-release' version '1.18.16' apply false
}

rootProject.name = "$projectName"
Expand Down

0 comments on commit 3da9670

Please sign in to comment.