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.

Integrate sbt into `setup-java` or create a new one called `setup-sbt` for better support for self-hosted runners :rocket:

See original GitHub issue

Description: Seems that, currently, sbt is part of the github-provided virtual environments, and not in setup-java

Justification: Having sbt installed in the github.com-provided runners is a bit problematic for users of self-hosted runners as it causes false expectations for this setup-java action, given that sbt is actually something that needs java to function. Thus installation of it would make much more sense to happen in this action, or alternatively in another new one, called setup-sbt or setup-scala (actually, an action with this name already exists and depends on a not very stable project, called jabba, see https://github.com/olafurpg/setup-scala/issues/48 for more background on this)

I had previously opened: https://github.com/actions/starter-workflows/issues/1309 which I have now closed, to keep comms here exclusively.

Our current, in-house workaround is to use sdkman.io to install everything manually in our self-hosted runners.

Are you willing to submit a PR? Yes

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
guizmaiicommented, Jan 31, 2022
2reactions
dmitry-shibanovcommented, Apr 26, 2022

Hello everyone. The new version was released with sbt caching support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sbt Reference Manual — Installing sbt
Setup a simple hello world project; Move on to running to learn how to run sbt. Then move on to .sbt build definition...
Read more >
Setting up your local machine with Java and SBT ready for ...
Choose the directory where you cloned the project to, and import from the build.sbt file. Add an application server by choosing: Run >...
Read more >
Telling SBT to use different JDK version - Question - Scala Users
Is there a way to tell SBT to use a different JDK than the one it detects automatically? I am working on Windows...
Read more >
Poor audio quality of voice messages - Nextcloud/Talk-Android
Integrate sbt into `setup-java` or create a new one called `setup-sbt` for better support for self-hosted runners :rocket: 10, 2021-12-18, 2022-10-17.
Read more >
Simple Build Tool | Getting with SBT | Setting Up | Running
Even, SBT has a native support for compiling SCALA code and integrating with different frameworks. Prerequisites for SBT – JAVA. To install java ......
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