Hi, I followed and edited the example from &lt;<ht...
# scripting
p
Hi, I followed and edited the example from <https://kotlinlang.org/docs/custom-script-deps-tutorial.html> and it work when I run it from intellij but from my fatjar (using the shadow gradle plugin) I get a couple errors:
Copy code
Using JDK home inferred from java.home: /usr/lib/jvm/java-17-openjdk
Using JVM IR backend
Using JVM IR backend
Loading modules: [<http://java.se|java.se>, jdk.accessibility, jdk.attach, jdk.compiler, jdk.dynalink, jdk.httpserver, jdk.incubator.foreign, jdk.incubator.vector, jdk.jartool, jdk.javadoc, jdk.jconsole, jdk.jdi, jdk.jfr, jdk.jshell, jdk.jsobject, jdk.management, jdk.management.jfr, <http://jdk.net|jdk.net>, jdk.nio.mapmode, jdk.sctp, jdk.security.auth, jdk.security.jgss, jdk.unsupported, jdk.unsupported.desktop, jdk.xml.dom, kotlin.stdlib, kotlin.script.runtime, kotlin.reflect, java.base, java.compiler, java.datatransfer, java.desktop, java.xml, java.instrument, java.logging, java.management, java.management.rmi, java.rmi, java.naming, java.net.http, java.prefs, java.scripting, java.security.jgss, java.security.sasl, java.sql, java.transaction.xa, java.sql.rowset, java.xml.crypto, jdk.internal.jvmstat, jdk.management.agent, jdk.jdwp.agent, jdk.internal.ed, jdk.internal.le, jdk.internal.opt]
Module kotlin.stdlib cannot be found in the module graph
Module kotlin.script.runtime cannot be found in the module graph
Module kotlin.reflect cannot be found in the module graph
i
Please, file an issue in YT https://kotl.in/issue
p
e
Hey @PixelHamster , I saw you open a ticket in Youtrack, I have a same issue after migrating to kotlin 1.8.20. Did you by chance found a cause for this behavior or solution?
p
I did not find a solution nor am I experienced enough to find a cause.
e
@PixelHamster I see, thanks. From quick digging I found out that regression came in kotlin 1.8.20