-
Notifications
You must be signed in to change notification settings - Fork 3
/
sonatype.sbt
41 lines (33 loc) · 1.03 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
//
// For sbt-sonatype
//
ThisBuild / organization := "com.frugalmechanic"
publishMavenStyle := true
ThisBuild / licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
// This doesn't seem to work for fm-common
//import xerial.sbt.Sonatype._
//ThisBuild / sonatypeProjectHosting := Some(GitHubHosting("frugalmechanic", "fm-common", "Tim Underwood", "[email protected]"))
//
// 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
)