How to display classpath used for run task?

sbt

Solution

Add the line `lazy val printClasspath ...` in your build.sbt file.

Then at the command line run:

`sbt printClasspath`

Problem

How can the classpath used for `run` task be displayed under SBT 0.13? I have found some info here https://groups.google.com/forum/#!msg/simple-build-tool/0rhVRPnjyZU/DOYAd14gh1wJ: I was dumping my classpaths as a way to troubleshoot my build recently and maybe this task can help you too: ``` lazy val printClasspath = task { this.runClasspath.getPaths.foreach(println); None } ``` runClasspath is a PathFinder [1] instance and you can interrogate it even further. I guess building a ':'-separated list of those paths will be easy. I don't understand where and how I should use this tip. Please advise.

Original source