SBT sources in IDEA

前端 未结 2 632
予麋鹿
予麋鹿 2020-12-07 21:32

I\'m using *.scala files in the project folder for configuring my SBT project. I\'m using IDEA12 with the Scala Plugin and sbt-idea fo

相关标签:
2条回答
  • 2020-12-07 21:41

    As of sbt version 1.2.8, the command is changed to:
    sbt updateClassifiers - to download all sources and docs
    sbt updateSbtClassifiers - to download sbt sources and docs.

    0 讨论(0)
  • 2020-12-07 21:47

    In SBT there are two command which may interest you:

    update-classifiers - will download all sources and documentation for all libs in your project
    update-sbt-classifiers - downloads sbt sources and docs

    This will download all the sources you need. To make an IDEA project with them just call gen-idea sbt-classifiers.

    If you don't want to call each time this commands for re-generating you project, you should add something like this to your build.sbt: addCommandAlias("make-idea", ";update-classifiers; update-sbt-classifiers; gen-idea sbt-classifiers").

    0 讨论(0)
提交回复
热议问题