-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
85 lines (70 loc) · 1.71 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
85
import sbtrelease.ReleaseStateTransformations._
import xerial.sbt.Sonatype._
name := "sbt-jni"
organization := "io.github.joprice"
enablePlugins(SbtPlugin, ScriptedPlugin)
publishArtifact in Test := false
scalaVersion := "2.12.13"
licenses += ("Apache-2.0", url(
"http://www.apache.org/licenses/LICENSE-2.0.html"
))
scriptedBufferLog := false
scriptedLaunchOpts ++= Seq(
"-Xmx2048M",
"-XX:MaxMetaspaceSize=512M",
s"-Dplugin.version=${version.value}",
// passes sbt directory to scripted tests to share caches
s"-Dsbt.boot.directory=${file(sys.props("user.home")) / ".sbt" / "boot"}"
)
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-feature",
"-encoding",
"utf8"
)
addCommandAlias(
"validate",
Seq(
"scripted",
"scalafmtCheck",
"scalafmtSbtCheck"
).mkString(";", ";", "")
)
addCommandAlias(
"fmt",
Seq(
"scalafmtAll",
"scalafmtSbt"
).mkString(";", ";", "")
)
publishTo := sonatypePublishToBundle.value
pomIncludeRepository := { _ => false }
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
releasePublishArtifactsAction := PgpKeys.publishSigned.value
sonatypeProjectHosting := Some(
GitHubHosting("joprice", "sbt-jni", "[email protected]")
)
developers := List(
Developer(
id = "joprice",
name = "Joseph Price",
email = "[email protected]",
url = url("https://github.com/joprice/")
)
)
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)