Comments (5)
So I believe the issue was me trying to be clever setting everything in subprojects
block. I went through a ton of variations of setting up submodules in the most unified way. The only way I could reverse engineer what to do was via tasks.withType<BaseAxionTask>
.
Breaking the docs rule I believe
keep in mind, that scmVersion must be initialized before scmVersion.version is accessed
Maybe we should add an example of how to best do this when not applying the plugin at the root level. I wanted to avoid having any root versioning/artifacts and simply use the repo has a mono repo for a collection of modules. No BOM or anything (See my struggle trying to disable the root one in any other way besides not applying the plugin #694). Does this seem reasonable?
Top level build.gradle.kts
plugins {
id("pl.allegro.tech.build.axion-release") version "1.16.1" apply false
}
subprojects {
plugins.apply("pl.allegro.tech.build.axion-release")
tasks.withType<BaseAxionTask> {
version = versionConfig.version // <-- This only works with release NOT cV and publish whoops! Moved to each module
versionConfig.tag {
prefix.set(project.name)
versionSeparator.set("_")
}
versionConfig.branchVersionIncrementer.putAll(
mapOf<String, Any>(
"micronaut.*" to VersionProperties.Incrementer { c: VersionIncrementerContext -> c.currentVersion.incrementPatchVersion() }
)
)
}
}
In module/build.gradle.kts
version = scmVersion.version
Result 🥳
Tags
Github Packges
NO MORE SNAPSHOT!!!!
from axion-release-plugin.
hi!
did you remembered to add fetch-depth: 0 to your checkout
github action?
from axion-release-plugin.
hi!
did you remembered to add fetch-depth: 0 to your
checkout
github action?
Yes
from axion-release-plugin.
I have a similar issue even running the action on main directly. I do the release in the action, which creates/pushes the correct tags, but then publish adds snapshot to the artifacts
Even tho the tags are in the repo and pushed do I need to fetch again before doing the gradle publish?
from axion-release-plugin.
@scprek do you create your release tasks using axion-release-plugin?
from axion-release-plugin.
Related Issues (20)
- Cannot get property 'value' on null object when using 'branchSpecific' incrementer HOT 1
- breaking change in configuration property 'directory' HOT 5
- TransportException: Not authorized while pushing all tags to remote HOT 3
- Tagging with the highest version does NOT work as expected even after useHighestVersion = true is configured HOT 4
- Error with Kotlin DSL Example from documentation
- Having GPG signing enabled seems to make pre commits fail HOT 1
- Use of code that is deprecated in Gradle 8.X and will be removed in Gradle 9 HOT 6
- How to check if current version is a snapshot programatically HOT 1
- RemoteRefUpdate Status is not populated to exception logger HOT 2
- -Prelease.forceVersion is not working locally HOT 3
- Disable Root Project From triggering Tag or Release HOT 2
- Handling Versioning in Multi-Module Gradle Projects with Axion-Release Plugin HOT 3
- initialPreReleaseIfNotOnPrerelease on gradle command line?
- Incrementing minor release during prerelease?
- Issues using the Kotlin DSL
- Issue with Tasks Not Found in Subproject in Multi-Project Setup HOT 2
- Question - How to serialize / deserialize tag in 1.16.1?
- Build fails because implicit dependency of VerifyReleaseTask HOT 4
- ReleaseFailedException on concurrent attempts to increment version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axion-release-plugin.