-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
76 lines (65 loc) · 2.12 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
lazy val root = (project in file(".")).
settings(
name := "jetty-ldap",
organization := "de.otto",
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://dev.otto.de/"))
)
scalaVersion in ThisBuild := "2.12.5"
libraryDependencies ++= Seq(
"org.eclipse.jetty" % "jetty-servlet" % "9.4.8.v20171121",
"org.eclipse.jetty" % "jetty-jaas" % "9.4.8.v20171121"
)
libraryDependencies ++= Seq(
"org.eclipse.jetty" % "jetty-client" % "9.4.8.v20171121" % Test,
"org.eclipse.jetty" % "jetty-server" % "9.4.8.v20171121" % Test,
"org.scalatest" %% "scalatest" % "3.0.3" % Test
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
useGpg := true
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT")) {
Some("snapshots" at nexus + "content/repositories/snapshots")
} else {
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
}
crossSbtVersions := Vector("0.13.17", "1.1.0")
// From: https://github.com/xerial/sbt-sonatype#using-with-sbt-release-plugin
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("^ test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^ publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
pomExtra := (
<developers>
<developer>
<id>fr3dch3n</id>
<name>Frederik Mars</name>
<email>[email protected]</email>
<organization>Otto (GmbH
&
Co KG)</organization>
<organizationUrl>https://www.otto.de</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:[email protected]:otto-de/jetty-ldap.git</connection>
<developerConnection>scm:git:[email protected]:otto-de/jetty-ldap.git</developerConnection>
<url>[email protected]:otto-de/jetty-ldap.git</url>
</scm>)