-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
[JENKINS-51658] add reincrementalify to completionGoals #117
[JENKINS-51658] add reincrementalify to completionGoals #117
Conversation
7818356
to
8662545
Compare
will this extra goal be a no-op on plugins without increment extension ? |
Indeed that is the case @ndeloof <activation>
<property>
<name>revision</name>
</property>
<file>
<exists>${basedir}/.mvn/maven.config</exists>
</file>
</activation> |
Oh I can do one better 😃 I can just check for |
might != will though |
No but if the profile is activate, it means when you release you still get the benefit of completion goals sadly maven is limited once again and you cannot chain profiles |
I can't really see a good way of activating this profile without assuming you are using incremental if you have if we make reincrementalify check if revision and changelist properties are in the POM before changing the pom we could make it fault tolerant and not break anybody. |
Added jenkinsci/incrementals-tools#5 to avoid breaking developers POM if for some odd reason they have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too much work and unreliable. Just put this configuration in the might-produce-incrementals
profile and it will be activated exactly when it is needed.
Yes something similar should go into |
fc45dfd
to
2084de8
Compare
Followed your advice @jglick 👍 |
JENKINS-51658 FTR |
@@ -1305,6 +1305,9 @@ | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<properties> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As noted in jenkinsci/pom#27 (review) this would better be done using mojo configuration.
I'll do a follow up 😊 |
cc @jglick @oleg-nenashev
This could be applied to https://github.com/jenkinsci/pom as well 👍
Here we can see the completionGoals in use: jenkinsci/kotlin-v1-stdlib-jdk8-plugin@afc6746