在intelliJ中创建Scala项目时,SBT和IDEA有什么区别?
What is the difference between SBT and IDEA when creating a Scala project in intelliJ?
在 IntelliJ 中创建项目时,我可以选择 sbt、Lightbend Project Starter、IDEA、Play 2.x、Dotty(实验性)。这些选项是什么意思,我如何才能了解更多?
IDEA is something related to IntelliJ IDE.
SBT is a build tool(substitute for maven) for scala projects.
When you enable SBT option, it will add sbt related configuration, sbt shell, sbt options. You can choose sbt if your project is built upon sbt (means your project will have a build.sbt file).
The other options also can be opted only if your project folder demands it.
Dotty 是该语言未来版本的名称 (Scala 3)。参见 https://dotty.epfl.ch/。
IDE一个项目,只是 IDE 让你使用 Scala 的配置...但它没有随附你可以轻松配置的构建系统,请提交给 git repo 等 - 你基本上必须自己配置 IntelliJ 中的所有内容,这很痛苦。
其他选项是 sbt 模板,其中 sbt 是 Scala 的构建工具:
- sbt - 创建空构建配置并将其导入到 IDE
- Lightbend Project Starter - 带有种子配置的模板集合。一般来说
sbt new template-name
可以generate a project使用模板名称(git模板的集线器存储库名称)和Lightbend准备和维护其中的一些
- 播放 - Play Framework
的 sbt 配置
- Dotty - Dotty (experimiental Scala 3)
的 sbt 配置
有了它们,您就有了一个构建配置,您可以配置、导入和签入 git,IntelliJ 使用它来生成 IDE 配置。
在 IntelliJ 中创建项目时,我可以选择 sbt、Lightbend Project Starter、IDEA、Play 2.x、Dotty(实验性)。这些选项是什么意思,我如何才能了解更多?
IDEA is something related to IntelliJ IDE. SBT is a build tool(substitute for maven) for scala projects. When you enable SBT option, it will add sbt related configuration, sbt shell, sbt options. You can choose sbt if your project is built upon sbt (means your project will have a build.sbt file).
The other options also can be opted only if your project folder demands it.
Dotty 是该语言未来版本的名称 (Scala 3)。参见 https://dotty.epfl.ch/。
IDE一个项目,只是 IDE 让你使用 Scala 的配置...但它没有随附你可以轻松配置的构建系统,请提交给 git repo 等 - 你基本上必须自己配置 IntelliJ 中的所有内容,这很痛苦。
其他选项是 sbt 模板,其中 sbt 是 Scala 的构建工具:
- sbt - 创建空构建配置并将其导入到 IDE
- Lightbend Project Starter - 带有种子配置的模板集合。一般来说
sbt new template-name
可以generate a project使用模板名称(git模板的集线器存储库名称)和Lightbend准备和维护其中的一些 - 播放 - Play Framework 的 sbt 配置
- Dotty - Dotty (experimiental Scala 3) 的 sbt 配置
有了它们,您就有了一个构建配置,您可以配置、导入和签入 git,IntelliJ 使用它来生成 IDE 配置。