mpeltonen / sbt-idea

A simple-build-tool (sbt) plugin/processor for creating IntelliJ IDEA project files
Other
1.07k stars 153 forks source link

bundle dependencies downloaded into jars folder as well as bundles folder #332

Open tekumara opened 9 years ago

tekumara commented 9 years ago

Given a project with a dependency that is packaged as a bundle, eg:

  lazy val tikaParser = "org.apache.tika" % "tika-parsers" % "1.0"

(tika-parsers is packaged as a bundle, see http://mvnrepository.com/artifact/org.apache.tika/tika-parsers/1.0)

When I resolve a project that contains a dependency on a bundle package, sbt gen-idea will trigger a resolve and download the bundles twice - into both the jars and bundles directory of the ivy cache:

➜  ~  ls ~/.ivy2/cache/org.apache.tika/tika-parsers/bundles
tika-parsers-1.0.jar
➜  ~  ls ~/.ivy2/cache/org.apache.tika/tika-parsers/jars   
tika-parsers-1.0.jar

This is fine, except that when I share the generated libarries files with another user who hasn't run sbt gen-idea, and only run sbt update, they only have the dependency in the bundles directory and not the jars directory.