-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling Versioning in Multi-Module Gradle Projects with Axion-Release Plugin #695
Comments
Hi, |
Having the same problem, could not solve it. Could you please help on this ? Thanks |
I had a lot in my last issue, solved all but the snapshot problem here so closed mine and referencin. #694 However in mine the tag pushed is correct without snapshot, but then gradle publish puts -SNAPSHOT in the artifacts. I'm not trying to change the snapshot suffix, I just don't know why it things my publish should be a snapshot when the tags exist so my issue may be related to #677 |
I need to reorganize our project into a multi project Gradle build as well - but I am completely unsure which of the sub projects should get the Axion plugin installed and the configuration done in its build.gradle.kts file.. can you help? Could this please be documented? |
@Zordid it really depends on what you want - do you want the same version over every publication? or do you want to have multiple tags and multiple different versions? |
Hm, how would that be possible? Since a multi-project-build lives in one repo (it's just a folder tree) there's only ever one version. (and that's what I still need)
It will still be exactly the same artifacts that get built and should be versioned. But, do I mention the Axion plugin along with |
You can have multiple tags in one repo, like:
so it's possible (done such config few times) I think it should work if you apply the plugin in every submodule - but it will be a duplication. |
Ok, will give it a try... Did not hear about a root |
sure, it just works ;) |
I have a demo application which has libraries. It has 2 sub modules:
demo/
->sub-demo1/
->sub-demo2/
Their gradle configurations:
build.gradle.kts for demo
build.gradle.kts for sub-demo2:
build.gradle.kts for sub-demo1:
Scenario:
I am expecting the versions with -NO_TAG prefix here. My expectation is working if the project is not a multi-module project.
What is the wrong for multi-module applications?
The text was updated successfully, but these errors were encountered: