Closed mattlong-finocomp closed 2 years ago
could you just use requireBranch.set(".*")
?
could you just use
requireBranch.set(".*")
?
Looks like yes, but I was trying to make the doco suggestion of Set to '' to ignore
accurate.
Setting it to null should skip the branch verification that we don't need an empty string.
That doesn't work.
See javadoc of Gradle's Property.set method: https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html#set-T-
This method can also be used to discard the value of the property, by passing it null. When the value is discarded (or has never been set in the first place), the convention (default value) for this property, if specified, will be used to provide the value instead.
So once it's set to null it goes back to using the convention which is master
requireBranch is always present due to the convention on the property. Even when overriding to empty string or null it is still considered present.