orrsella / sbt-sublime

An sbt plugin for generating Sublime Text projects with library dependencies sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make it configurable whether "sbt clean" removes the external libraries

agemooij opened this issue · comments

This plugin is awesome, especially in combination with ST3, thanks for creating it!

It would be great if I could configure the plugin to not remove the external libraries sources every time I run sbt clean. I hardly ever update my dependencies but I do run sbt clean once in a while and it makes no sense to me why that should break my Sublime project.

I used the sublimeExternalSourceDirectoryParent settings to get the library sources out of the target directory in the assumption that that would fix it but then I found that the plugin explicitly adds the sources folder to the SBT clean targets.

Thanks

Thanks for the kind words! :)

I agree – it would be nice to have the sources dir persist during cleanup. I removed the explicit addition of sublimeExternalSourceDirectory to cleanFiles, so now if you change the sublimeExternalSourceDirectoryParent away from target your sources will not get deleted during the clean task.

I published an update and bumped the version number to 1.0.4. It's already available in Sonatype releases repo and should be available in Maven Central in the next couple of hours. I updated the docs as well.

Thanks for your feedback.

Thanks!