sbt-package-dist icon indicating copy to clipboard operation
sbt-package-dist copied to clipboard

Assembled archive doesn't include classes from projects specified in sbt Project.dependsOn()

Open viktortnk opened this issue 12 years ago • 3 comments

I have a project with two submodules scpecified in Project.dependsOn() method in Build.scala and their compiled classes are not included in target archive during package-dist task. All jar dependencies are placed without problems. Environment: sbt:0.11.2, sbt-package-dist:1.0.0

viktortnk avatar Apr 02 '12 07:04 viktortnk

Well, actually it can simply be done by setting exportJars:=true in project submodules. But without this setting dependecyClasspath points to submodules "classes" directories, that are not copied to root project distribution recursively (but empty). Should it really be fixed?

viktortnk avatar Apr 07 '12 06:04 viktortnk

so the problem is that, when copying over dependencies into the dist/ folder, the copy is not done recursively?

robey avatar Apr 10 '12 23:04 robey

All jar dependencies are ok. But target/scala-*/classes folders of submodules are not copied recursively . (dist//libs/classes is empty)

viktortnk avatar Apr 11 '12 00:04 viktortnk