简体   繁体   English

IntelliJ:多模块scala(SBT)项目源代码重构

[英]IntelliJ: multi-module scala (SBT) project source code refactoring

IntelliJ provides a handy support for refactoring a maven multi-module project via the Add Maven Projects command. IntelliJ通过Add Maven Projects命令为重构 maven多模块项目提供了便利的支持。 Is there a similar option for Scala (SBT) projects. Scala(SBT)项目是否有类似的选项。

ps my current workaround is to convert a scala project from sbt to maven build; ps我目前的解决方法是将scala项目从sbt转换为maven build; and then include it as a module in maven project. 然后将其作为maven项目中的模块包含在内。

Attaching an existing SBT project to current one? 将现有SBT项目附加到当前项目? It is possible from SBT tool window: 从SBT工具窗口可以:

http://imageshack.us/a/img21/8820/h8nw.png .

There is also an issue ( SCL-6625 ) about incorrect module dependencies in SBT projects. 关于SBT项目中不正确的模块依赖性还存在一个问题( SCL-6625 )。 The answer was provided by Andrey from JetBrains/IntelliJ Support. 答案由安德鲁从JetBrains / IntelliJ支持部门提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM