您好,登錄后才能下訂單哦!
這篇文章主要介紹“scala sbt開發環境搭建教程”,在日常操作中,相信很多人在scala sbt開發環境搭建教程問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”scala sbt開發環境搭建教程”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!
1. sbt 下載地址
https://www.scala-lang.org/download/all.html https://www.scala-sbt.org/download.html https://plugins.jetbrains.com https://piccolo.link/sbt-1.3.0.zip https://plugins.jetbrains.com/files/5007/22670/idea-sbt-plugin-1.8.0.zip https://plugins.jetbrains.com/files/1347/44093/scala-intellij-bin-2018.1.6.zip
2. 配置環境變量至path
3. sbt配置文件
(1) sbt.boot.properties
[scala] version: ${sbt.scala.version-auto} [app] org: ${sbt.organization-org.scala-sbt} name: sbt version: ${sbt.version-read(sbt.version)[0.13.9]} class: ${sbt.main.class-sbt.xMain} components: xsbti,extra cross-versioned: ${sbt.cross.versioned-false} resources: ${sbt.extraClasspath-} [repositories] local huaweicloud-maven: https://repo.huaweicloud.com/repository/maven/ my-maven-repo: https://maven.aliyun.com/nexus/content/groups/public typesafe: https://dl.bintray.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly sbt-plugin-repo: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] sbt-plugin: https://dl.bintray.com/sbt/sbt-plugin-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] [boot] directory: ${sbt.boot.directory-${sbt.global.base-${user.home}/.sbt}/boot/} [ivy] ivy-home: ${sbt.ivy.home-${user.home}/.ivy2/} checksums: ${sbt.checksums-sha1,md5} override-build-repos: ${sbt.override.build.repos-false} repository-config: ${sbt.repository.config-${sbt.global.base-${user.home}/.sbt}/repositories}
(2) sbtconfig.txt
# Set the java args to high -Xmx512M -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=128m # Set the extra SBT options -Dsbt.log.format=true -Dsbt.scala.version=2.10.5 -Dsbt.override.build.repos=true -Dsbt.repository.secure=false
到此,關于“scala sbt開發環境搭建教程”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續學習更多相關知識,請繼續關注億速云網站,小編會繼續努力為大家帶來更多實用的文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。