Allow using a library from github, similar to what sbt can do
See original GitHub issueIs your feature request related to a problem? Please describe.
Not all libraries are published on maven, some are only on github or other places. Currently scala-cli cannot depend on a repo outside of maven (if I have understood it correctly?).
Describe the solution you’d like
I’d like to be able to depend on a jar released on GitHub (and elsewhere) In a similar way as sbt
allows for this, for example (sbt syntax):
libraryDependencies += "tabby" % "tabby" % "0.2.3" from
s"https://github.com/bjornregnell/tabby/releases/download/v$tabbyVer/tabby_3-0.2.3.jar"
it would be very useful if the using
directive of scala-cli
could point to a jar
on the net.
Additional context This should, if implemented, be documented with a simple example here: https://scala-cli.virtuslab.org/docs/guides/dependencies/
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Add scripted as library dependency for builds of sbt plugins
My goal with this is to make it easier for devs to define sbt plugins. Those builds that already specify the scripted library...
Read more >How can SBT project import library from GitHub cloned to local ...
If it is supported by the project you have cloned (that is, if it supports SBT and is configured to publish to a...
Read more >How to publish a Scala library in GitHub Packages - Medium
This said, let's go! ... This one will be “example-library”. ... this token in $HOME/.sbt/1.0/github.sbt, so SBT can read it automatically.
Read more >Ammonite
If you're wondering what you can do with Ammonite, there is an ... the :: is used to represent Scala dependencies, similar to...
Read more >Library Author Guide - Scala Documentation
For the sake of conciseness, this example uses commonly chosen technologies like GitHub, Travis CI, and sbt, but alternative technologies will be mentioned ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow - it really “just works” like a charm! Many thank’s @armanbilge for making me aware of this - I didn’t realize that jitpack does its thing even without me doing anything else 😃
(But even with this option, it would be useful if scala-cli could allow a jar dependency directly from e.g. github without the need for jitpack, as this is yet another (meta-)depedency…)