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
Sorry if this is not the right place to ask questions but I couldn't find a better one.
I wanted to centralize the Axion configuration and have my Jenkins add Axion configuration so that I don't have to maintain the configuration of the plugin in every one of my projects. I used the following content as the initscript which I pass with gradle -I<initscript> release && gradle -I<initscript> publish (I use maven-publish):
However, this does not work with maven-publish plugin if the build.gradle file contains explicit version (e.g. version '1.0.0-SNAPSHOT'). I suppose this is because the initscript gets executed before the version line in build.gradle which overrides it.
Is there any way to do this, i.e. have a separate axion.gradle file that I can use in addition to the standard build.gradle from Jenkins?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi!
Sorry if this is not the right place to ask questions but I couldn't find a better one.
I wanted to centralize the Axion configuration and have my Jenkins add Axion configuration so that I don't have to maintain the configuration of the plugin in every one of my projects. I used the following content as the initscript which I pass with
gradle -I<initscript> release && gradle -I<initscript> publish
(I use maven-publish):However, this does not work with maven-publish plugin if the
build.gradle
file contains explicit version (e.g. version '1.0.0-SNAPSHOT'). I suppose this is because the initscript gets executed before the version line in build.gradle which overrides it.Is there any way to do this, i.e. have a separate axion.gradle file that I can use in addition to the standard build.gradle from Jenkins?
Thanks!
The text was updated successfully, but these errors were encountered: