<@U0CHHN4F4> when I add a JAR to the classpath, th...
# scripting
a
@ilya.chernikov when I add a JAR to the classpath, then try to import and use a top level function, it cannot import it either with
.*
or directory by name from the package. So something not working with the descriptor loading during scripting? for example:
Copy code
@file:DependsOnMaven("uy.klutter:klutter-core-jdk8:1.20.1")
 import uy.klutter.core.jdk8.*
println(utcNow().toIsoString())
which has code from
Dates.kt
as:
Copy code
public fun utcNow(): Instant = Instant.now()
public fun Temporal.toIsoString(): String = isoDateFormat().format(this)
I also tried to get at it via
DatesKt
class. Usually this happens when kotlin doesn’t load descriptors / kotlin metadata