Stephan Schroeder
initialVersion
scmVersion { versionIncrementer 'incrementMinor' tag { initialVersion = { config, position -> '1.0.0' } } checks { aheadOfRemote = false uncommittedChanges = false } }
tasks { scmVersion { versionIncrementer("incrementMinor") tag { initialVersion = { config, position -> "1.0.0" } } checks(delegateClosureOf<ChecksConfig> { aheadOfRemote = false uncommittedChanges = false }) } }
init{versionCreator{...
tag { init { versionCreator(delegateClosureOf<...> { ... }) } }
tag(delegateClosureOf<TagNameSerializationConfig> { initialVersion = { rules: TagProperties, position: ScmPosition ->"1.0.0"} })
Closure initialVersion = defaultInitialVersion() private static Closure defaultInitialVersion() { return { TagProperties rules, ScmPosition position -> return '0.1.0' } }
tag(delegateClosureOf<TagNameSerializationConfig> { initialVersion = KotlinClosure2<TagProperties, ScmPosition, String>({ _, _ ->"1.0.0"}) })
A modern programming language that makes developers happier.