-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
67 lines (56 loc) · 2.21 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
name := "s2utils"
version := "1.1.1"
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.8", "2.12.4")
// Testing framework
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.+" % "test"
// Geometry objects
libraryDependencies += "com.vividsolutions" % "jts" % "1.13"
// S2 core library (on maven - fork of original Google lib)
libraryDependencies += "io.sgr" % "s2-geometry-library-java" % "1.0.0"
// Enable sbt-ghpages to create a github site for docs
enablePlugins(GhpagesPlugin)
git.remoteRepo := "https://github.com/dmarcous/S2Utilities"
enablePlugins(SiteScaladocPlugin)
// POM settings for Sonatype
organization := "com.github.dmarcous"
sonatypeProfileName := "com.github.dmarcous"
homepage := Some(url("https://github.com/dmarcous/S2Utilities"))
scmInfo := Some(ScmInfo(url("https://github.com/dmarcous/S2Utilities"),
"scm:git@github.com:dmarcous/S2Utilities.git"))
developers := List(Developer("dmarcous",
"Daniel Marcous",
"dmarcous@gmail.com",
url("https://github.com/dmarcous")))
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
pomIncludeRepository := (_ => false)
publishMavenStyle := true
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")
}
// publish overwrite old
publishConfiguration := publishConfiguration.value.withOverwrite(true)
com.typesafe.sbt.pgp.PgpKeys.publishSignedConfiguration := com.typesafe.sbt.pgp.PgpKeys.publishSignedConfiguration.value.withOverwrite(true)
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
com.typesafe.sbt.pgp.PgpKeys.publishLocalSignedConfiguration := com.typesafe.sbt.pgp.PgpKeys.publishLocalSignedConfiguration.value.withOverwrite(true)
import ReleaseTransformations._
// Release properties
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
// setNextVersion,
// commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)