I am trying to use this one in Kotlin:
versioning {
releaseMode = { nextTag, lastTag, currentTag, extension ->
"${nextTag}"
}
}
But I am not sure how to use it on Kotlin, I need to specify the types but it is impossible to know easily what are types of those properties:
versioning {
releaseMode = { nextTag: String, lastTag: String, currentTag: String, extension: VersioningExtension ->
println(lastTag) // this is not being printed
lastTag
}
}
I tried Any in all types (I hate it) but it doesn't print too.
I am trying to use this one in Kotlin:
versioning { releaseMode = { nextTag, lastTag, currentTag, extension -> "${nextTag}" } }But I am not sure how to use it on Kotlin, I need to specify the types but it is impossible to know easily what are types of those properties:
versioning { releaseMode = { nextTag: String, lastTag: String, currentTag: String, extension: VersioningExtension -> println(lastTag) // this is not being printed lastTag } }I tried
Anyin all types (I hate it) but it doesn't print too.