We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--package
kscript/src/main/kotlin/io/github/kscripting/kscript/code/GradleTemplates.kt
Lines 69 to 78 in 6acd4e1
Here I see that we don't use runtimeClasspath and in some scenarios, we need to.
runtimeClasspath
I guess something like so,
from({ configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) } })
For example,
@file:DependsOn("com.linecorp.armeria:armeria:1.30.1") import com.linecorp.armeria.client.WebClient val wc = WebClient.of("https://ssl-checker.io/api/v1/check/") wc .get("/example.com") .aggregate() .thenAccept { response -> println(response.contentUtf8()) }.join()
Try this script, it works when run using kscript, however it doesn't work when compiled with --package option.
kscript
You need to add @file:DependsOn("io.netty:netty-handler-proxy:4.1.112.Final") to make it compile.
@file:DependsOn("io.netty:netty-handler-proxy:4.1.112.Final")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
kscript/src/main/kotlin/io/github/kscripting/kscript/code/GradleTemplates.kt
Lines 69 to 78 in 6acd4e1
Here I see that we don't use
runtimeClasspath
and in some scenarios, we need to.I guess something like so,
For example,
Try this script, it works when run using
kscript
, however it doesn't work when compiled with--package
option.You need to add
@file:DependsOn("io.netty:netty-handler-proxy:4.1.112.Final")
to make it compile.The text was updated successfully, but these errors were encountered: