Releases: allegro/axion-release-plugin
v1.18.4
What's Changed
Changed
We continue streamlining GitHub Workflows (and CI runtimes in general).
This release is introducing unshallowRepoOnCI
incubating option,
that will unshallow the git repository, so the axion-release-plugin
can successfully read tags history despite your CI clone strategy.
Usage:
scmVersion {
unshallowRepoOnCI.set(true)
}
Now, you can simplify your GitHub Actions config:
steps:
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
After more testing with other CI pipelines, this option will probably be enabled by default.
- Unshallow repo on CI by @radoslaw-panuszewski in #790
Dependency updates
- Bump org.apache.sshd:sshd-core from 2.13.1 to 2.13.2 by @dependabot in #787
- Bump pl.allegro.tech.build.axion-release from 1.18.2 to 1.18.3 by @dependabot in #785
- Bump mkdocs-material from 9.5.30 to 9.5.31 by @dependabot in #784
- Bump org.apache.sshd:sshd-git from 2.13.1 to 2.13.2 by @dependabot in #786
Full Changelog: v1.18.3...v1.18.4
v1.18.3
What's Changed
- #761 | Fix released-version output reporting SNAPSHOT version by @radoslaw-panuszewski in #783
Dependencies
- Bump pl.allegro.tech.build.axion-release from 1.18.0 to 1.18.2 by @dependabot in #781
- Bump mkdocs-material from 9.5.29 to 9.5.30 by @dependabot in #782
Full Changelog: v1.18.2...v1.18.3
v1.18.2
What's Changed
- Fix for GITHUB_HEAD_REF having empty value by @radoslaw-panuszewski in #779
Full Changelog: v1.18.1...v1.18.2
v1.18.1
New behavior
From now on, on GitHub Workflows, you don't need to check out ref for axion-release-plugin to know what branch your build is being run on—it will be read from the GitHub workflow environment variable (GITHUB_HEAD_REF).
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- ref: ${{ github.head_ref }}
What's Changed
- Read ref from GITHUB_HEAD_REF env variable if it's present by @radoslaw-panuszewski in #776
Dependencies
- Bump mkdocs-material from 9.5.27 to 9.5.28 by @dependabot in #774
- Bump pl.allegro.tech.build.axion-release from 1.17.2 to 1.18.0 by @dependabot in #773
- Bump mkdocs-material from 9.5.28 to 9.5.29 by @dependabot in #778
New Contributors
- @radoslaw-panuszewski made their first contribution in #776
Full Changelog: v1.18.0...v1.18.1
v1.18.0
What's Changed
This release addresses a common issue with code collaboration using this plugin, particularly when multiple feature branches are being developed simultaneously from the same HEAD.
Problem
Until now, the plugin used a SIMPLE version creator by default, which did not decorate version in any way.
This default setting led to the following issues:
- Both feature branches would generate the same version (e.g.,
v0.0.1-SNAPSHOT
). - During publication, this resulted in overridden snapshots, as Maven allows overwriting SNAPSHOT versions.
Solution
This release changes the default versionCreator
to VERSION_WITH_BRANCH.
The new behavior includes:
- Appending the branch name to the version (e.g.,
v0.0.1-my-branch-name-SNAPSHOT
). - Falling back to the SIMPLE version creator for detached HEAD checkouts, maintaining the old behavior in such cases.
Breaking change
- Versions will now include the branch name, preventing the override of snapshots across different branches.
Migration Guide
To continue using the SIMPLE version creator, update your plugin configuration as follows:
scmVersion {
versionCreator('simple')
}
Additional changes
- improve ci_servers.md GitLab CI branch override by @doofy in #760
- Use forUseAtConfigurationTime only for lower Gradle versions by @kkocel in #765
Dependencies
- Bump mkdocs-material from 9.5.20 to 9.5.25 by @dependabot in #763
- Bump org.objenesis:objenesis from 3.3 to 3.4 by @dependabot in #753
- Bump pl.allegro.tech.build.axion-release from 1.17.1 to 1.17.2 by @dependabot in #752
- Bump org.apache.sshd:sshd-git from 2.12.1 to 2.13.1 by @dependabot in #771
- Bump mkdocs-material from 9.5.25 to 9.5.27 by @dependabot in #769
- Bump org.apache.sshd:sshd-core from 2.12.1 to 2.13.1 by @dependabot in #770
- Bump com.github.mwiede:jsch from 0.2.17 to 0.2.18 by @dependabot in #766
- Bump jgitVersion from 6.9.0.202403050737-r to 6.10.0.202406032230-r by @dependabot in #768
New Contributors
Full Changelog: v1.17.2...v1.18.0
v1.17.2
What's Changed
Dependencies
- Bump pl.allegro.tech.build.axion-release from 1.17.0 to 1.17.1 by @dependabot in #748
- Bump mkdocs-material from 9.5.18 to 9.5.20 by @dependabot in #747
Full Changelog: v1.17.1...v1.17.2
v1.17.1
What's Changed
Introducing overridenIsClean
flag.
New Contributors
Dependabot
- Bump mkdocs-material from 9.5.9 to 9.5.10 by @dependabot in #720
- Bump gradle/wrapper-validation-action from 2 to 3 by @dependabot in #735
- Bump mkdocs-material from 9.5.10 to 9.5.17 by @dependabot in #733
- Bump com.kohlschutter.junixsocket:junixsocket-core from 2.8.3 to 2.9.1 by @dependabot in #732
- Bump org.apache.sshd:sshd-core from 2.12.0 to 2.12.1 by @dependabot in #719
- Bump org.ajoberstar.grgit:grgit-core from 4.1.0 to 5.2.2 by @dependabot in #717
- Bump org.apache.sshd:sshd-git from 2.12.0 to 2.12.1 by @dependabot in #718
- implement flag overridenIsClean by @balrok in #738
- Bump mkdocs from 1.5.3 to 1.6.0 by @dependabot in #746
- Bump com.github.mwiede:jsch from 0.2.16 to 0.2.17 by @dependabot in #743
- Bump org.bouncycastle:bcprov-jdk18on from 1.77 to 1.78.1 by @dependabot in #742
- Bump io.github.gradle-nexus.publish-plugin from 1.3.0 to 2.0.0 by @dependabot in #740
- Bump mkdocs-material from 9.5.17 to 9.5.18 by @dependabot in #745
- Bump jgitVersion from 6.8.0.202311291450-r to 6.9.0.202403050737-r by @dependabot in #741
- Bump pl.allegro.tech.build.axion-release from 1.16.1 to 1.17.0 by @dependabot in #744
Full Changelog: v1.17.0...v1.17.1
v1.17.0
Breaking change
axion-release-plugin now requires a minimum Gardle 7
What's Changed
This release drops Gradle 6 support since it was a blocker to allow this plugin to handle the newer encryptions for SSH like elliptic curves and other recent cipher suites. From now on, many connection issues should be resolved thank you @mc1arke!
New Contributors
Dependencies
- Bump mkdocs-material from 9.4.14 to 9.5.3 by @dependabot in #692
- Bump jgitVersion from 6.7.0.202309050840-r to 6.8.0.202311291450-r by @dependabot in #690
- Bump pl.allegro.tech.build.axion-release from 1.15.5 to 1.16.1 by @dependabot in #687
- Bump actions/setup-java from 3 to 4 by @dependabot in #688
- Bump org.apache.sshd:sshd-git from 2.11.0 to 2.12.0 by @dependabot in #702
- Bump mkdocs-material from 9.5.3 to 9.5.6 by @dependabot in #705
- Bump org.apache.sshd:sshd-core from 2.11.0 to 2.12.0 by @dependabot in #701
- Bump mkdocs-material from 9.5.6 to 9.5.7 by @dependabot in #709
- Bump codecov/codecov-action from 3 to 4 by @dependabot in #708
- Bump gradle/wrapper-validation-action from 1 to 2 by @dependabot in #707
- Bump mkdocs-material from 9.5.7 to 9.5.9 by @dependabot in #714
Full Changelog: v1.16.1...v1.17.0
v1.14.5
v1.16.1
What's Changed
- Issue #684 Populating RemoteRefUpdate.Status by @VicenteJankowski in #685
- remove VersionScmPosition as it is a duplicate of ScmPosition by @rzabini in #686
New Contributors
- @VicenteJankowski made their first contribution in #685
Full Changelog: v1.16.0...v1.16.1