This message was deleted.
# kotlin-dsl
s
This message was deleted.
e
because that's not how Kotlin interop works
try
JvmTarget.Companion.fromTarget("11")
a
No signature of method: static org.jetbrains.kotlin.gradle.dsl.JvmTarget$Companion.fromTarget() is applicable for argument types: (String) values: [11]
Possible solutions: fromTarget(java.lang.String)
e
ah, that's a Groovy thing. it's treating
JvmTarget.Companion
as
JvmTarget$Companion.class
, but you need to access the static field of
JvmTarget
named
Companion
should work if you use
JvmTarget.@Companion.fromTarget("11")
but it would be easier if you just didn't use the Groovy DSL :)
☝️ 2
v
Then the question would also be in the right channel. As long as you use Groovy DSL, the Kotlin DSL channel is wrong.
a
Oh, wow. Thank you - yes, with that
@
it works. Sorry for picking the wrong channel.
👌 1