-
Notifications
You must be signed in to change notification settings - Fork 3
/
sonatype.sbt
47 lines (38 loc) · 1.13 KB
/
sonatype.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
//
// Enable Sonatype snapshots repository for SNAPSHOT versions only
//
resolvers ++= {
if (version.value.trim.endsWith("SNAPSHOT")) Resolver.sonatypeOssRepos("snapshots") else Nil
}
//
// For sbt-sonatype
//
organization := "com.frugalmechanic"
publishMavenStyle := true
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(GitHubHosting("frugalmechanic", "fm-flatfile", "Tim Underwood", "timunderwood@gmail.com"))
//
// For sbt-pgp
//
usePgpKeyHex("AB8A8ACD374B4E2FF823BA35553D700D8BD8EF54")
//
// For sbt-release
//
import ReleaseTransformations._
releaseCrossBuild := true // true if you cross-build the project for multiple Scala versions
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
// For non cross-build projects, use releaseStepCommand("publishSigned")
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)