-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
66 lines (53 loc) · 2.01 KB
/
build.sbt
File metadata and controls
66 lines (53 loc) · 2.01 KB
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
name := "text-utils"
organization := "software.purpledragon"
scalaVersion := "2.13.15"
crossScalaVersions := Seq("2.12.20", scalaVersion.value, "3.3.4")
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
organizationName := "Michael Stringer"
startYear := Some(2020)
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt"))
developers := List(
Developer("stringbean", "Michael Stringer", "@the_stringbean", url("https://github.com/stringbean"))
)
organizationHomepage := Some(url("https://purpledragon.software"))
homepage := Some(url("https://github.com/stringbean/text-utils"))
scmInfo := Some(
ScmInfo(url("https://github.com/stringbean/text-utils"), "scm:git:git@github.com:stringbean/text-utils.git"))
publishTo := sonatypePublishToBundle.value
versionScheme := Some("semver-spec")
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations.*
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
releaseStepTask(Compile / headerCheck),
releaseStepTask(Test / headerCheck),
releaseStepTask(Compile / scalafmtCheck),
releaseStepTask(Test / scalafmtCheck),
releaseStepTask(mimaFindBinaryIssues),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeBundleRelease"),
releaseStepTask(ghpagesPushSite),
setNextVersion,
commitNextVersion,
pushChanges
)
mimaPreviousArtifacts := Set("software.purpledragon" %% "text-utils" % "1.3.0")
// documentation settings
enablePlugins(SiteScaladocPlugin, GhpagesPlugin, ParadoxSitePlugin, SitePreviewPlugin)
autoAPIMappings := true
git.remoteRepo := scmInfo.value.get.connection.replace("scm:git:", "")
ghpagesNoJekyll := true
SiteScaladoc / siteSubdirName := "api"
addMappingsToSiteDir(SiteScaladoc / packageDoc / mappings, SiteScaladoc / siteSubdirName)
Compile / paradoxProperties ++= Map(
"scaladoc.base_url" -> ".../api"
)