Branch: refs/heads/master
Home: https://github.com/jenkinsci/plugin-pom
Commit: bd5687b020b7df5d87e4b24500145848447ed94d
https://github.com/jenkinsci/plugin-pom/commit/bd5687b020b7df5d87e4b24500145848447ed94d
Author: Vincent Latombe <[email protected]>
Date: 2024-09-24 (Tue, 24 Sep 2024)
Changed paths:
M README.md
M pom.xml
Log Message:
-----------
Add 'may-spotless-apply' profile (#1017)
I often find myself forgetting to apply spotless before committing.
On some repositories, I have set up a pre-commit git hook running `mvn
spotless:check`. However, this has to be set up on each repository that
has spotless check enabled, and disabled on those which don't.
I think this goes one step further, by defining a conventional maven
profile `may-spotless-apply` that will run `spotless:apply` *only* if
spotless is enabled for the given repository.
This allows any user to incorporate `-Pmay-spotless-apply` as part of
their usual build command (or defined in their maven settings active profiles
section),
and have `spotless:apply` automatically called if the project has it enabled.
To unsubscribe from these emails, change your notification settings at
https://github.com/jenkinsci/plugin-pom/settings/notifications
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/plugin-pom/push/refs/heads/master/ba0341-bd5687%40github.com.