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
In the long run, the stuff I've got on my user-preferences branch will solve the "snapshot" vs "develop" problem. I've got a few test failures to figure out, but it's mostly there. Kind of your usual layered settings-lookup thing - look for a .cactus.properties in the project dir, or any parent dir up to the checkout root, and under that a cactus.properties under your home dir.
So we add an annotation to those properties where the defaults should be customizable (like the default development branch) that serves the same role as defaultValue= in Maven's @Parameter annotation, but looks them up in that stack of properties files.
So, we'll just be able to put a .cactus.properties file in the root of safety-service with a key-value pair to set what the base branch is.
What I've got on the branch adds a couple of twists - key lookup tries first $MOJO_CLASS_SIMPLE_NAME.$KEY, and then the key (which, if unspecified, is just the field name).
That way, a key/value pair can be customized just for one mojo if it's too broad or overloaded to make sense with the same setting for all mojos.
There was some example I'd thought of when I decided to do it, but I don't remember what.
It's on the branch feature/user-preferences - I think I pushed it, but if not I will.
when we switch safety-service to develop with the mojo, it should switch it to 'snapshot' instead. important feature to prevent mistakes
The text was updated successfully, but these errors were encountered: