This repository has been archived by the owner on Sep 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
84 lines (76 loc) · 3.04 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
import Dependencies._
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import ReleaseTransformations._
import scalariform.formatter.preferences._
lazy val commonSettings = Seq(
organization := "de.envisia.database",
scalaVersion := "2.12.8",
crossScalaVersions := Seq("2.12.8", "2.13.0"),
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("envisia-internal" at "https://nexus.envisia.io/repository/internal/")
)
val formattingSettings = Seq(
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(SpacesAroundMultiImports, true)
.setPreference(SpaceInsideParentheses, false)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(PreserveSpaceBeforeArguments, true)
.setPreference(DoubleIndentClassDeclaration, true)
)
lazy val `akka-pg` = (project in file("."))
.settings(commonSettings)
.settings(formattingSettings)
.settings(
libraryDependencies ++= Seq(
slf4j,
akkaStream,
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test",
scalaTest % Test
)
)
// To sync with Maven central, you need to supply the following information:
pomExtra in Global := {
<url>https://github.com/schmitch/akka-pg</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<scm>
<connection>scm:[email protected]:schmitch/akka-pg.git</connection>
<developerConnection>scm:git:[email protected]:schmitch/akka-pg.git</developerConnection>
<url>github.com/schmitch/akka-pg</url>
</scm>
<developers>
<developer>
<id>schmitch</id>
<name>Christian Schmitt</name>
<url>https://git.envisia.de/schmitch</url>
</developer>
</developers>
}
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
runTest, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease, // : ReleaseStep
releaseStepCommandAndRemaining("+publishSigned"), //publishArtifacts, // : ReleaseStep, checks whether `publishTo` is properly set up
setNextVersion, // : ReleaseStep
commitNextVersion, // : ReleaseStep
pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured
)