I have a kts gradle buildscript in which this plugin is used.
The plugin sets the project.version property to a string and adds some additional properties:
While the version property is a string, it does expose some additional properties. These are
snapshot,major,minor,patchandpreRelease.
Now, how can I access these properties from build.gradle.kts?
Trying things like val major = project.version.major as Integer always fail since Kotlin is statically typed:
Unresolved reference: major
Is there any way to access these properties or do I have to go back to a groovy based gradle.build buildscript?