How to load source sbt plugin banks in a common sbt project?

It is natural to load dependency source bans in an sbt project using sbt gen-ideaeither the idea auto-import function

but how can I load jbb files that I declared in project/plugins.sbt

+4
source share
2 answers

IDEA

IDEA should already do this *.

When importing a project and Download sbt sourcescheck the Settings> Build, Run, Deploy> Build Tools> sbt box , then it will run the updateSbtClassifierssbt task .

* Read the Troubleshooting section , as there are several known issues.


SBT

, sbt:

sbt> updateSbtClassifiers

, , . , . . sbt/sbt # 3432.


, sbt .

, build.sbt, .

, project/plugins.sbt, -.

updateSbtClassifiers, , -. , .

( ) - updateClassifiers -.

-:

sbt> reload plugins

, -:

sbt:project> updateClassifiers

src doc (, ). libraryDependencies, -.

sbt:project> reload return build run:

sbt , src, doc. :

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: rocks.muki#sbt-graphql;0.5.0!sbt-graphql.jar(doc)
[warn]  :: rocks.muki#sbt-graphql;0.5.0!sbt-graphql.jar(src)
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

, . sbt-plugin-releases, sbt. . .

, sbt-plugin-releases, , sbt/sbt # 3432.

updateSbtClassifiers . build.sbt :

updateSbtClassifiers / dependencyResolution := IvyDependencyResolution((updateSbtClassifiers / ivyConfiguration).value)

updateSbtClassifiers src doc IDEA, , .

sbt-structure. . SCL-13619.

- ( ), .ivy2/exclude_classifiers. , , , sbt , .

, , , . .

+2

reload plugins , . libraryDependencies, () . reload return, sbt.

:

0

All Articles