I'm writing plugin for sbt like sbt-assembly, sbt-pack, etc. I want to get inter-project dependencies (internalDependencyClasspath
or projectDependencies
) and call package
task on this projects and get path to produced artifact. How can i call package
task on other projects? and how can i get references to "child" projects from "parent" project in general?
Asked
Active
Viewed 473 times
1

wedens
- 1,782
- 14
- 18
1 Answers
2
You can have a look how sbt-native-packager does that
Are you sure this plugin won't cover your needs? For me it helps building .tgz archive with run script inside.
Previously I also used plugins you mentioned, but discarded the first (sbt-assembly) because of high build time and didn't actually want to merge everything into single jar, and second (sbt-pack) because it didn't properly resolved transitive dependencies (at least before) and put a lot of duplicates.

viktortnk
- 2,739
- 1
- 19
- 18