Closed juxeii closed 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
major
val major = project.version.major as Integer
Unresolved reference: major
I also tried to find the version properties in the extra properties map, but it is empty.
extra
@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?
project.version
@vivin Here is the solution for this: klick It is not nice though :) Issue can be closed.
Hi,
does anyone know how to access the property
major
in a kotlin DSL buildscript?val major = project.version.major as Integer
gives the errorI also tried to find the version properties in the
extra
properties map, but it is empty.