forked from alisheikh/gfc-semver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
53 lines (37 loc) · 1.22 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 scoverage.ScoverageKeys
name := "gfc-semver"
organization := "org.gfccollective"
scalaVersion := "2.13.8"
crossScalaVersions := Seq(scalaVersion.value, "2.12.15")
scalacOptions += "-target:jvm-1.8"
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.12" % Test,
)
ScoverageKeys.coverageMinimumStmtTotal := 77.0
ScoverageKeys.coverageFailOnMinimum := true
publishMavenStyle := true
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
homepage := Some(url("https://github.com/gfc-collective/gfc-semver"))
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
Test / publishArtifact := false
pomIncludeRepository := { _ => false }
pomExtra := (
<scm>
<url>https://github.com/gfc-collective/gfc-semver.git</url>
<connection>scm:git:[email protected]:gfc-collective/gfc-semver.git</connection>
</scm>
<developers>
<developer>
<id>stjohnb</id>
<name>Brendan St John</name>
<url>https://github.com/stjohnb</url>
</developer>
</developers>
)