aboutsummaryrefslogtreecommitdiff
path: root/home/.sbt/0.13/build.sbt
blob: 061ddd027822b1708f2c00ca0334220e33bd7ee7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import com.typesafe.sbt.pgp.PgpKeys._
gpgCommand in Global := "gpg2"
pgpSigningKey in Global := Some(0x2CED17AB2B6D6F37l)
useGpgAgent in Global := true
useGpg in Global := true

import org.ensime.EnsimeCoursierKeys._
ensimeServerVersion in ThisBuild := "2.0.0-SNAPSHOT"

import java.nio.file.Files
target := {
  val buildSbt = baseDirectory.value / "build.sbt"
  val projectSbt = baseDirectory.value / "project.sbt"
  val project = baseDirectory.value / "project"

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