-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
77 lines (71 loc) · 2.12 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
import ReleaseTransformations._
ThisBuild / organization := "eu.joaocosta"
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / scalaVersion := "3.3.4"
ThisBuild / licenses := Seq("MIT License" -> url("http://opensource.org/licenses/MIT"))
ThisBuild / homepage := Some(url("https://github.com/JD557/interim"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/JD557/interim"),
"scm:[email protected]:JD557/interim.git"
)
)
ThisBuild / versionScheme := Some("semver-spec")
ThisBuild / autoAPIMappings := true
ThisBuild / scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-language:higherKinds",
"-unchecked"
)
ThisBuild / scalafmtOnCompile := true
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
ThisBuild / scalafixOnCompile := true
// Don't publish the root project
publish / skip := true
publish := (())
publishLocal := (())
publishArtifact := false
publishTo := None
val siteSettings = Seq(
Compile / doc / scalacOptions ++= (
if (scalaBinaryVersion.value.startsWith("3"))
Seq("-siteroot", "docs")
else Seq()
)
)
lazy val core =
crossProject(JVMPlatform, JSPlatform, NativePlatform)
.in(file("core"))
.settings(
name := "interim",
libraryDependencies += "org.scalameta" %%% "munit" % "1.1.0" % Test,
Compile / doc / scalacOptions ++=
Seq(
"-project",
"InterIm",
"-project-version",
version.value,
"-social-links:github::https://github.com/JD557/interim",
"-siteroot",
"docs"
)
)
releaseCrossBuild := true
releaseTagComment := s"Release ${(ThisBuild / version).value}"
releaseCommitMessage := s"Set version to ${(ThisBuild / version).value}"
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)