vivin / gradle-semantic-build-versioning

Gradle plugin to generate version-numbers and tags using semantic versioning
MIT License
86 stars 32 forks source link

How to access major, minor and patch within a kts script? #101

Closed juxeii closed 6 years ago

juxeii commented 6 years ago

Hi,

does anyone know how to access the property major in a kotlin DSL buildscript? val major = project.version.major as Integer gives the error

Unresolved reference: major

I also tried to find the version properties in the extra properties map, but it is empty.

vivin commented 6 years ago

@juxeii Unfortunately not. I haven't tried to use this with kotlin. What happens when you output project.version? There may be some interop issues between kotlin and groovy?

juxeii commented 6 years ago

@vivin Here is the solution for this: klick It is not nice though :) Issue can be closed.