Skip to content
New issue

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

Resolve build target automatically like Gradle #341

Open
gad2103 opened this issue Feb 13, 2022 · 1 comment
Open

Resolve build target automatically like Gradle #341

gad2103 opened this issue Feb 13, 2022 · 1 comment

Comments

@gad2103
Copy link

gad2103 commented Feb 13, 2022

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")

@holgerbrandl
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants