You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue with the Axion release plugin in a multi-project Gradle setup. Despite configuring the plugin in the root project and setting up a monorepo configuration, tasks such as currentVersion is not being recognized in proja subproject.
Here's what I did:
Applied the Axion release plugin in the root project's build.gradle.kts.
Configured scmVersion in the root project for a monorepo setup.
Attempt to run ./gradlew :proja:currentVersion from the root directory.
Expected Behavior:
The currentVersion task should provide the current version of the proja subproject. Or I would at least expect running ./gradlew cV would show versions of all the configured subprojects alongside the root. Actual Behavior:
The task currentVersion is not found in the proja subproject. The command ./gradlew :proja:currentVersion results in a "Task not found" error.
Additionally, the settings.gradle.kts does include this sub-project. Also, I have tried other permutations and combinations too, such as adding the scmVersion block for the sub-project's gradle.build.kts but that still throws an error for being unrecognisable.
Not sure what I am missing.
Ideally I want a configuration where the root can handle which projects to include and exclude and also have the subprojects configurable to say which other sub projects to bump up and exclude. Thank you!
The text was updated successfully, but these errors were encountered:
Hi, if I understand correctly you are setting project.version = rootProject.version to all subprojects - so basicaly you have one version for each module (which seems reasonable) then you don't need to use mono repo settings. You don't need current version task in submodules since all will have the same version. So for me, you just apply the plugin on root project (try using only default values). In your submodules use root project.scmVersion as your version and that should be all you need
I am experiencing an issue with the Axion release plugin in a multi-project Gradle setup. Despite configuring the plugin in the root project and setting up a monorepo configuration, tasks such as currentVersion is not being recognized in proja subproject.
Here's what I did:
Applied the Axion release plugin in the root project's build.gradle.kts.
Configured scmVersion in the root project for a monorepo setup.
Attempt to run ./gradlew :proja:currentVersion from the root directory.
Expected Behavior:
The currentVersion task should provide the current version of the proja subproject. Or I would at least expect running ./gradlew cV would show versions of all the configured subprojects alongside the root.
Actual Behavior:
The task currentVersion is not found in the proja subproject. The command ./gradlew :proja:currentVersion results in a "Task not found" error.
Root Project Configuration (build.gradle.kts):
Additionally, the settings.gradle.kts does include this sub-project. Also, I have tried other permutations and combinations too, such as adding the scmVersion block for the sub-project's gradle.build.kts but that still throws an error for being unrecognisable.
Not sure what I am missing.
Ideally I want a configuration where the root can handle which projects to include and exclude and also have the subprojects configurable to say which other sub projects to bump up and exclude. Thank you!
The text was updated successfully, but these errors were encountered: