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

Allow for dependencies to fallback to a JAR url provided in a url user param #875

Merged
merged 2 commits into from
Apr 12, 2022

Conversation

Gedochao
Copy link
Contributor

Fixes #857

This allows for passing a dependency url through Scala CLI like this:

scala-cli run --dependency "tabby:tabby:0.2.3,url=https://github.com/bjornregnell/tabby/releases/download/v0.2.3/tabby_3-0.2.3.jar" UsingRemoteJar.scala

or even with a using directive:

//> using lib "tabby:tabby:0.2.3,url=https://github.com/bjornregnell/tabby/releases/download/v0.2.3/tabby_3-0.2.3.jar"
import tabby.Grid

object UsingRemoteJar extends App {
  println(Grid("a", "b", "c")(1, 2, 3))
}

@alexarchambault alexarchambault force-pushed the dependencies-from-jar-url branch 2 times, most recently from 7a11e7a to 7fbf8f8 Compare April 11, 2022 17:38
@Gedochao Gedochao merged commit 10965e5 into VirtusLab:main Apr 12, 2022
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

Successfully merging this pull request may close these issues.

Allow using a library from github, similar to what sbt can do
2 participants