summaryrefslogtreecommitdiff
path: root/project/Release.scala
blob: feab8bdc8c7d4269ce77e00678e1f438f2eb49c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import sbt._
import Keys._

object Release {

  // TODO - Just make the STARR artifacts and dump the sha1 files.

  val starrLibs = Seq("scala-library.jar", "scala-reflect.jar", "scala-compiler.jar", "jline.jar")

  val pushStarr = Command.command("new-starr") { (state: State) =>
    /*val extracted = Project.extract(state)
    import extracted._
    // First run tests
    val (s1, result) = runTask(test in Test, state)
    // If successful, package artifacts
    val (s2, distDir) = runTask(makeExplodedDist, s1)
    // Then copy new libs in place
    val bd = extracted get baseDirectory
    for {
      jarName <- starrLibs
      jar = distDir / "lib" / jarName
      if jar.exists
    } IO.copyFile(jar, bd / "lib" / jarName)
    // Invalidate SHA1 files.
    ShaResolve.removeInvalidShaFiles(bd)
    // Now run tests *again*?
    s2*/
    state
  }
}