Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add gc task

  • Loading branch information...
commit f2a7b4e16e0657d99abfa736d6b5404afdf5a9d4 1 parent a70b914
-> LilyLambda authored

Showing 1 changed file with 19 additions and 0 deletions. Show diff stats Hide diff stats

  1. 19  project/build.scala
19  project/build.scala
... ...
@@ -0,0 +1,19 @@
  1
+import sbt._
  2
+import Keys._
  3
+
  4
+object build extends Build {
  5
+
  6
+  val gcsettings = Defaults.defaultSettings
  7
+
  8
+  val gc = TaskKey[Unit]("gc", "runs garbage collector")
  9
+  val gcTask = gc := {
  10
+    println("requesting garbage collection")
  11
+    System gc()
  12
+  }
  13
+
  14
+  lazy val project = Project (
  15
+    "project",
  16
+    file("."),
  17
+    settings = gcsettings ++ Seq(gcTask)
  18
+  )
  19
+}

0 notes on commit f2a7b4e

Please sign in to comment.
Something went wrong with that request. Please try again.