Show internal path of class SBT
Is it possible to use show
or export
custom set of internal SBT dependencies?
For example, if I run it sbt "show fullClasspath"
, it doesn't include org.scala-lang.scala-compiler
. And if my version of the Scala app is different from the SBT version (like a Play app using 2.11 and SBT 0.13.5) then sbt compile
there are tons of unrecorded cans of SBT at startup .
The motivation is that I am trying to trim mine .ivy2/cache
to reduce the size of the disk image that contains the application code (without re-downloading anything on sbt compile
).
source to share
You can do reload plugins
that changes the current assembly to project/
:
The reload plugins command changes the current build to the (root) project / build definition. This allows you to manipulate the build definition project like a normal project. reload changes back to the original build. Any session settings for the plugin that have not been saved are discarded.
When choosing an assembly definition, you can do show fullClasspath
.
If you want to do this without starting the sbt console first, you can do sbt "reload plugins" "show fullClasspath"
.
source to share