All Projects → sbt → Sbt Dirty Money

sbt / Sbt Dirty Money

Licence: mit
clean Ivy2 cache

Programming Languages

scala
5932 projects

Labels

Projects that are alternatives of or similar to Sbt Dirty Money

Scala Steward
🤖 A bot that helps you keep your Scala projects up-to-date
Stars: ✭ 812 (+866.67%)
Mutual labels:  sbt
Play Reactive Slick
This is Play Template with a nice User Interface. If you want to use Play as web framework and Postgres as Database then this demo project can be used as a starting point for your application.
Stars: ✭ 40 (-52.38%)
Mutual labels:  sbt
Scala Native.g8
Giter8 template for a minimal project that uses Scala Native.
Stars: ✭ 61 (-27.38%)
Mutual labels:  sbt
Swagger Codegen Play Scala
Swagger client generator which is based on the PlayWS library
Stars: ✭ 9 (-89.29%)
Mutual labels:  sbt
Rhodddoobie
My little sandbox for playing around with the FP + OOP + DDD combination, in particular using Rho, doobie, Docker, testing, etc in a project.
Stars: ✭ 38 (-54.76%)
Mutual labels:  sbt
Sbt Multi Jvm
Multi-JVM testing in sbt
Stars: ✭ 50 (-40.48%)
Mutual labels:  sbt
Sbt Docker
Create Docker images directly from sbt
Stars: ✭ 689 (+720.24%)
Mutual labels:  sbt
Sbt Dependency Graph
sbt plugin to create a dependency graph for your project
Stars: ✭ 1,223 (+1355.95%)
Mutual labels:  sbt
Sbt Play Gulp
Gulp asset pipeline for Play Framework
Stars: ✭ 38 (-54.76%)
Mutual labels:  sbt
Scala Graalvm Docker
Docker images to build and generate native artifacts using GraalVM
Stars: ✭ 60 (-28.57%)
Mutual labels:  sbt
Sbt Ignore Play Generated
Configure linters and coverage tools to ignore Play's generated source files.
Stars: ✭ 10 (-88.1%)
Mutual labels:  sbt
Scala Cypher Dsl
A type-safe Cypher Query Language DSL for Scala.
Stars: ✭ 34 (-59.52%)
Mutual labels:  sbt
Sbt Frege
Frege support for sbt
Stars: ✭ 51 (-39.29%)
Mutual labels:  sbt
Sbt Scripting
Getting started tutorial for scripting using sbt.
Stars: ✭ 9 (-89.29%)
Mutual labels:  sbt
Ore
Repository software for Sponge plugins and Forge mods
Stars: ✭ 63 (-25%)
Mutual labels:  sbt
Scala Logging
Convenient and performant logging library for Scala wrapping SLF4J.
Stars: ✭ 804 (+857.14%)
Mutual labels:  sbt
Finagle Metrics
Easy way to send Finagle metrics to Codahale Metrics library
Stars: ✭ 41 (-51.19%)
Mutual labels:  sbt
Proscalafx
Pro JavaFX2 book source codes translated to ScalaFX
Stars: ✭ 83 (-1.19%)
Mutual labels:  sbt
Scala Js Chrome
ScalaJS bindings for Chrome Extention/App and ChromeOS APIs
Stars: ✭ 73 (-13.1%)
Mutual labels:  sbt
Play Spark Scala
Stars: ✭ 51 (-39.29%)
Mutual labels:  sbt

sbt-dirty-money is an sbt plugin for cleaning Ivy2's cache. If you use publishLocal to test plugins and libraries, and you find yourself clearing Ivy2's cache often, this is a tool for you.

setup

For sbt 1.x, add the following to ~/.sbt/1.0/plugins/dirtymoney.sbt:

addSbtPlugin("com.eed3si9n" % "sbt-dirty-money" % "0.2.0")

and ~/.sbt/0.13/plugins/dirtymoney.sbt for sbt 0.13:

addSbtPlugin("com.eed3si9n" % "sbt-dirty-money" % "0.2.0")

Requires sbt 0.13.5+, 0.13.17+ recommend.

how to use

cleaning built artifacts

The above automatically adds 4 global tasks to sbt prompt: cleanCacheFiles, cleanCache, cleanLocalFiles, and cleanLocal.

To display what cleanCache would clean, run:

> show cleanCacheFiles
[info] * /Users/foo/.ivy2/cache/scala_2.9.1/sbt_0.11.0/org.scalaxb/sbt-scalaxb
[info] * /Users/foo/.ivy2/cache/scala_2.9.1/sbt_0.11.0/org.scalaxb/sbt-scalaxb/jars/sbt-scalaxb-0.6.6-SNAPSHOT.jar

NOTE: This is calculated as ((dir / "cache") ** ("*" + organization + "*") ** ("*" + moduleName + "*")).get where dir is ~/.ivy2. If there are related projects that include both your organization and moduleName, they would also be cleaned from the cache! (For example, unfiltered/unfiltered would pick up any unfiltered-xxx). To delete the files, run:

> cleanCache

Similarly, to display what cleanLocal would clean, run:

> show cleanLocalFiles
[info] * /Users/foo/.ivy2/local/org.scalaxb ...

This is calculated as ((dir / "local") ** ("*" + organization + "*") ** ("*" + moduleName + "*")).get. To delete these files, run:

> cleanLocal

If you're cleaning local, it's probably a good idea to clean cache too.

cleaning other artifacts (0.1+ only)

By passing command arguments, you can target other projects as well.

To clean all artifacts that includes both "net.databinder.dispatch" and "dispatch-json4s" that are cached:

> show cleanCacheFiles "net.databinder.dispatch" % "dispatch-json4s"
[info] ArrayBuffer(~/.ivy2/cache/net.databinder.dispatch/dispatch-json4s-native_2.10, ...
> cleanCache "net.databinder.dispatch" % "dispatch-json4s"
[success] Total time: 0 s, completed Aug 21, 2013 9:47:26 PM

To clean all artifacts from the organization "net.databinder.dispatch" that are cached.

> show cleanCacheFiles "net.databinder.dispatch"
[info] ArrayBuffer(~/.ivy2/cache/net.databinder.dispatch, ...
> cleanCache "net.databinder.dispatch"
[success] Total time: 1 s, completed Aug 21, 2013 9:49:04 PM

To clean all artifacts from the cache:

> show cleanCacheFiles *
[info] ArrayBuffer(~/.ivy2/cache, ~/.ivy2/cache/--compile-internal.xml ...
> cleanCache *
[success] Total time: 95 s, completed Aug 21, 2013 9:51:17 PM

The arguments work the same for cleanLocalFiles and cleanLocal.

License

MIT License. It's already in the license, but THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. Seriously, check what you're about to delete, and use it at your own risk.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].