This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
73 lines (68 loc) · 2.25 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import ReleaseTransformations._
updateOptions := updateOptions.value.withGigahorse(false)
name := "akka-ipp"
organization in ThisBuild := "de.envisia.ipp"
scalaVersion in ThisBuild := "2.12.6"
crossScalaVersions in ThisBuild := Seq("2.12.6", "2.11.11" ,"2.13.0-M2")
testFrameworks += new TestFramework("utest.runner.Framework")
sonatypeProfileName := "de.envisia.ipp"
lazy val root = (project in file("."))
.settings(
libraryDependencies ++= Dependencies.commonDeps ++ Seq(scalaOrganization.value % "scala-reflect" % scalaVersion.value)
)
scalacOptions := Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
)
// Sonatype Settings for Publishing
developers := List(
Developer(
id = "schmitch",
name = "Christian Schmitt",
email = "[email protected]",
url = url("http://github.com/schmitch")
),
Developer(
id = "zy4",
name = "Seung-Zin Nam",
email = "[email protected]",
url = url("http://github.com/zy4")
)
)
publishMavenStyle in ThisBuild := true
pomIncludeRepository in ThisBuild := { _ => false }
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")
}
// Release Settings
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
runTest, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease, // : ReleaseStep
releaseStepCommand(s"""sonatypeOpen "de.envisia.ipp" "envisia-ipp-staging""""),
publishArtifacts, // : ReleaseStep, checks whether `publishTo` is properly set up
releaseStepCommand("sonatypeRelease"),
setNextVersion, // : ReleaseStep
commitNextVersion, // : ReleaseStep
pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured
)