Allow checking in an on-the-fly mode while still benefiting from other sbt settings #680
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See slick/slick#2356, scalacenter/sbt-version-policy#119, scalacenter/sbt-version-policy#121
Basically, while I want to use MiMa the way most people do, to make sure version bumps are the correct bump type, I also want to generate a report of changes (and not by the widespread "solution" of encoding the changelog as MiMa filters). This means that while the "real" SBT setting may be a check direction of
"none"
, or with sbt-version-policy theversionPollcyIntention
may beCompatibility.None
, I still want to have the ability to run MiMa and get back information that I can present in an arbitrary format to the user. It just shouldn't break the build.I first implemented a PR generating a markdown report for Slick by creating a separate SBT configuration so that there can be a separate "namespace" of settings, but that's inelegant. This PR allows to hook in to the way the plugin configure MiMa from SBT while still specifying certain parameters on the fly.
With this change plus scalacenter/sbt-version-policy#121, my Slick markdown report task is a lot more straightforward (expand to see diff). (Well it's longer, which would be nice to improve somehow, but it's less hacky...)