作者: | 来源:互联网 | 2023-08-27 11:25
(1)下载sbthttps:repo.typesafe.comtypesafeivy-releasesorg.scala-sbtsbt-launch0.13.11sbt-launc
(1)下载sbt
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.11/sbt-launch.jar
(2)新建目录并将sbt复制到目录下
(3)编辑sbt文本文件加入以下内容:
#!/bin/bash
SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"
(4)保存后,为sbt 脚本增加可执行权限:
(5)最后运行如下命令,检验 sbt 是否可用: