forked from rtyley/bfg-repo-cleaner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
53 lines (38 loc) · 1.61 KB
/
build.sbt
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import Dependencies._
import common._
import sbt._
import Defaults._
import com.typesafe.sbt.pgp.PgpKeys._
organization in ThisBuild := "com.madgag"
scalaVersion in ThisBuild := "2.11.4"
scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature", "-language:postfixOps")
licenses in ThisBuild := Seq("GPLv3" -> url("http://www.gnu.org/licenses/gpl-3.0.html"))
homepage in ThisBuild := Some(url("https://github.com/rtyley/bfg-repo-cleaner"))
libraryDependencies in ThisBuild += specs2 % "test"
lazy val root = Project(id = "bfg-parent", base = file(".")) settings (signedReleaseSettings:_*) settings (
publishSigned := {} ) aggregate(bfg, bfgTest, bfgLibrary)
lazy val bfgTest = bfgProject("bfg-test")
lazy val bfgLibrary = bfgProject("bfg-library") dependsOn(bfgTest % "test")
lazy val bfg = bfgProject("bfg") dependsOn(bfgLibrary, bfgTest % "test")
lazy val bfgBenchmark = bfgProject("bfg-benchmark")
publishMavenStyle in ThisBuild := true
publishTo in ThisBuild <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at s"${nexus}content/repositories/snapshots")
else
Some("releases" at s"${nexus}service/local/staging/deploy/maven2")
}
pomIncludeRepository in ThisBuild := { _ => false }
pomExtra in ThisBuild := (
<scm>
<url>[email protected]:rtyley/bfg-repo-cleaner.git</url>
<connection>scm:git:[email protected]:rtyley/bfg-repo-cleaner.git</connection>
</scm>
<developers>
<developer>
<id>rtyley</id>
<name>Roberto Tyley</name>
<url>https://github.com/rtyley</url>
</developer>
</developers>)