2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-11-15 15:23:41 -05:00
|
|
|
################################################################################
|
2023-11-22 21:49:23 +01:00
|
|
|
## File: install-sbt.sh
|
|
|
|
|
## Desc: Install sbt
|
2019-11-15 15:23:41 -05:00
|
|
|
################################################################################
|
|
|
|
|
|
2021-03-19 15:20:27 +03:00
|
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
|
|
|
|
|
|
# Install latest sbt release
|
2023-12-06 14:01:37 +01:00
|
|
|
download_url=$(resolve_github_release_asset_url "sbt/sbt" "endswith(\".tgz\")" "latest")
|
2023-11-29 20:25:29 +01:00
|
|
|
archive_path=$(download_with_retry "$download_url")
|
|
|
|
|
tar zxf "$archive_path" -C /usr/share
|
2021-03-19 15:20:27 +03:00
|
|
|
ln -s /usr/share/sbt/bin/sbt /usr/bin/sbt
|
2020-12-29 10:02:46 +03:00
|
|
|
|
2023-11-22 21:49:23 +01:00
|
|
|
invoke_tests "Tools" "Sbt"
|