I found, admittedly, a simple, but slightly hacked and yet working solution. As described here , you can customize your ivy home directory. Once configured, this will invoke sbt instances on your system to update all dependencies, due to the new cache directory. When all dependencies can be resolved, you can check std out for some string indicating success. For example, Done updating. and then delete the temporary folder. Caution, a new solution from scratch may take some time! ~ 5 minutes 100 Mbps and using an SSD drive
Instead of defining the system sbt.ivy.home variable latitudinally and somewhat not portable, I would recommend using a less systemic invasive option to define the sbt.ivy.home variable in the sbt.ivy.home environment SBT_OPTS in your local command / terminal session. On Windows, this looks like this way:
C:\Users\isi\Projects\learning\sbt-test-dependencies>SET SBT_OPTS=-Dsbt.ivy.home="C:\path\to\your\temp\directory" C:\Users\isi\Projects\learning\sbt-test-dependencies>sbt Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 [info] Loading project definition from C:\Users\isi\Projects\learning\sbt-test-dependencies\project [info] Updating {file:/C:/Users/isi/Projects/learning/sbt-test-dependencies/project/}sbt-test-dependencies-build... [info] Resolving org.fusesource.jansi
The output signal can be transmitted over channels to say grep , and the output code can be used for further processing. Please note that the console output above was created using the sbt interactive command, a similar output is created using the non-interactive sbt update command.
isaias-b
source share