8000 Allow for dependencies to fallback to a JAR url provided in a `url` user param by Gedochao · Pull Request #875 · VirtusLab/scala-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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

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

@Gedochao Gedochao force-pushed the dependencies-from-jar-url branch from 6f18f42 to 2ef0d13 Compare April 11, 2022 12:14
@alexarchambault alexarchambault force-pushed the dependencies-from-jar-url branch 2 times, most recently from 7a11e7a to 7fbf8f8 Compare April 11, 2022 17:38
@alexarchambault alexarchambault force-pushed the dependencies-from-jar-url branch from 7fbf8f8 to 33eb240 Compare April 12, 2022 08:17
@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
0