You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Integrate sbt into setup-java or create a new one called setup-sbt for better support for self-hosted runners 🚀 #266
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 olafurpg/setup-scala#48 for more background on this)
Hello @dimisjim. Thank you for your report. We do not plan to add functionality in the setup-java action to install sbt. The main purpose of the setup-java action is to install java from available distributions. Could you please check existing actions for sbt ?
Hello everyone. I'm going to close the issue because the new version with sbt caching support was released and the major tag was updated. If you have any concerns feel free to ping us.
Activity
joschi commentedon Dec 22, 2021
Why wouldn't you use https://github.com/dwijnand/sbt-extras for this, similar to how it is typically done in Gradle projects (using the Gradle wrapper script)?
dimisjim commentedon Dec 22, 2021
We have already used a script, like the one you linked.
This issue refers to native github actions, but thanks for sharing anyway 👍
dmitry-shibanov commentedon Dec 23, 2021
Hello @dimisjim. Thank you for your report. We do not plan to add functionality in the setup-java action to install sbt. The main purpose of the setup-java action is to install java from available distributions. Could you please check existing actions for sbt ?
guizmaii commentedon Jan 31, 2022
@dimisjim sbt has been added to the by-default-installed softwares of the latest OS versions supported in Github Actions (see https://github.com/actions/virtual-environments#available-environments for the OS versions):
macos-latest): https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#project-managementwindows-latest): https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#project-managementubuntu-latest): https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#project-managementfmeriaux commentedon Mar 24, 2022
+1
it would be interesting to integrate the sbt cache like mvn or gradle https://github.com/actions/cache/blob/main/examples.md#scala---sbt
joschi commentedon Mar 24, 2022
@fmeriaux Go for it. 😉
setup-java/src/cache.ts
Lines 23 to 36 in f69f00b
fmeriaux commentedon Mar 24, 2022
done #302
laughedelic commentedon Mar 24, 2022
FYI: https://github.com/coursier/cache-action handles sbt cache (also Mill, Ammonite, and is highly configurable).
dmitry-shibanov commentedon Apr 26, 2022
Hello everyone. The new version was released with sbt caching support.
dmitry-shibanov commentedon May 24, 2022
Hello everyone. I'm going to close the issue because the new version with sbt caching support was released and the major tag was updated. If you have any concerns feel free to ping us.