-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
87 lines (82 loc) · 2.72 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import Dependencies._
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
import scalariform.formatter.preferences._
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
lazy val commonSettings = Seq(
updateOptions := updateOptions.value.withGigahorse(false),
organization := "de.envisia",
scalaVersion := "2.12.6",
scalacOptions in(Compile, doc) ++= Seq(
"-target:jvm-1.8",
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-deprecation"
),
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-o"),
publishMavenStyle in ThisBuild := true,
pomIncludeRepository in ThisBuild := { _ => false },
publishTo in ThisBuild := Some("Nexus Internal" at "https://nexus.envisia.de/repository/internal/")
)
val formattingSettings = Seq(
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(SpacesAroundMultiImports, true)
.setPreference(SpaceInsideParentheses, false)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(PreserveSpaceBeforeArguments, true)
.setPreference(DoubleIndentConstructorArguments, true)
)
lazy val `akka-lpd` = (project in file("."))
.settings(commonSettings)
.settings(formattingSettings)
.settings(
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.25",
"org.snmp4j" % "snmp4j" % "2.6.2",
akka,
scalaTest % Test
)
)
// To sync with Maven central, you need to supply the following information:
pomExtra in Global := {
<url>https://github.com/sto/akka-lpr</url>
<licenses>
<license>
<name>Envisia License</name>
<url>http://git.envisia.de/envisia</url>
</license>
</licenses>
<scm>
<connection>scm:[email protected]:sto/akka-lpr.git</connection>
<developerConnection>scm:git:[email protected]:sto/akka-lpr.git</developerConnection>
<url>git.envisia.de/sto/akka-lpr</url>
</scm>
<developers>
<developer>
<id>schmitch</id>
<name>Christian Schmitt</name>
<url>https://git.envisia.de/schmitch</url>
</developer>
<developer>
<id>envisia</id>
<name>envisia GmbH</name>
<url>http://git.envisia.de/envisia</url>
</developer>
</developers>
}
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts, // : ReleaseStep, checks whether `publishTo` is properly set up
setNextVersion,
commitNextVersion,
pushChanges
)