这篇文章主要介绍“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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。