aboutsummaryrefslogtreecommitdiff
path: root/home/.sbt/0.13/build.sbt
blob: b4d3f8120785339769226a0babaa64ad52fc4651 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cancelable in Global := true

// configure gpg
import com.typesafe.sbt.pgp.PgpKeys._
gpgCommand in Global := "gpg2"
pgpSigningKey in Global := Some(0x2CED17AB2B6D6F37l)
useGpgAgent in Global := true
useGpg in Global := true

// don't create target directory when starting sbt in non-project directory
// (e.g. when running sbt-new)
import java.nio.file.Files
target := {
  val buildSbt = new File("build.sbt")
  val projectSbt = new File("project.sbt")
  val project = new File("project")

  if (buildSbt.exists || projectSbt.exists || project.exists)
    target.value
  else
    Files.createTempDirectory("sbt-new").toFile
}