question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Is 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:closed
  • Created a year ago
  • Reactions:3
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bjornregnellcommented, Apr 8, 2022

l I reckon this “just works” as well 😃

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found