kscript icon indicating copy to clipboard operation
kscript copied to clipboard

Resolve build target automatically like Gradle

Open gad2103 opened this issue 3 years ago • 1 comments

I'm not sure this is possible, but I didn't realize that if you are using a multiplatform capable library, you have to only depend on the jvm version of it. I was banging my head against the wall until i looked in my external dependencies folder and saw only jvm versions of libraries that gradle auto-resolved. it would be nice if kscript could do the same.

example:

works @file:DependsOn("com.github.ajalt.clikt:clikt-jvm:3.4.0")

fails during kscript package step @file:DependsOn("com.github.ajalt.clikt:clikt:3.4.0")

gad2103 avatar Feb 13 '22 00:02 gad2103

I have not used mulitplatform yet, and won't be of much help here. I guess the support boils down to the kotlin-scripting dependency resolver, which is used under the hood.

holgerbrandl avatar Apr 19 '22 16:04 holgerbrandl