This message was deleted.
# community-support
s
This message was deleted.
v
With what technique did you develop the plugin? Plain
.kt
file? Precompiled script plugin? ...?
j
scmVersion
is an extension from a 3rd party plugin, I just need to read the value... I am coding my plugin in .kt and using it in a included build
v
If you also use the
kotlinDsl()
dependency to use the Kotlin DSL enhancements by Gradle, you can use
the<TypeOfTheExtension>()
. If not, you get it from
extensions
for example with
extensions.findByType
or
extensions.findByType
. But with the latter you will only get an
Any
back and then need to cast, so you can right away get it by type unless there are multiple extensions of that type which deem unlikely in your case.
thank you 1
j
thanks, the
the
strategy worked
👌 1