renaissance icon indicating copy to clipboard operation
renaissance copied to clipboard

Add sbt command to clean all class files

Open farquet opened this issue 5 years ago • 1 comments

I noticed that running clean in sbt, even followed by cleanFiles keeps a lot of class files around. If you are switching between JDKs, you will hit bad class file versions and you will have to remove them manually somehow. Currently, I simply do

find . -type d -name 'target' -prune -print -exec rm -rf {} ';'

but that's dangerous and removes more than necessary. We should introduce an sbt command renaissanceClean that properly removes those class files.

Reference : https://stackoverflow.com/questions/4483230/an-easy-way-to-get-rid-of-everything-generated-by-sbt

farquet avatar May 15 '19 09:05 farquet

I found this old issue in SBT tracker where it seems that it is actually not an issue at all ;-)

[...] been discussed on the mailing list before with the same conclusion as the linked StackOverflow question. If you really want a clean cache, [...] you don't need to rely on the build tool's clean. [...]

vhotspur avatar Jul 16 '19 09:07 vhotspur