Skip to content

Improve the experience and/or documentation on Kotlin #89

@JavierSegoviaCordoba

Description

@JavierSegoviaCordoba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions