SBT wastes a lot of disk space for dependencies, each of which builds

We have a Playframework 2.4 project (with SBT 0.13.8) that we are building on Jenkins.

Today Jenkins stops working because its $JENKINS_HOME

working completely. I analyzed which tool wastes disk space: SBT.

There is a folder located at

.sbt/0.13/dependency/module/dynamic

      

which contains quadrillions of subfolders. Each of them has one folder for each of our Play modules. Each of these folders contains one JSON file (graph.json)

. Looks like a huge graph of dependencies in JSON. 16MB

each individual assembly.

  • What is the purpose of these data structures?
  • Can I configure SBT to clean up these files after building?
+3


source to share


1 answer


Perhaps this issue: https://github.com/sbt/sbt/issues/2014 ? It should then be committed to sbt 0.13.9.



See: https://twitter.com/eed3si9n/status/608309137890541569

+3


source







All Articles