-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
97 lines (72 loc) · 2.26 KB
/
build.sbt
File metadata and controls
97 lines (72 loc) · 2.26 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import sbtrelease.ReleaseStateTransformations.*
organization := "com.magaran"
name := "typed-map"
description := "Utility package providing a Map with typed keys for type-safe storage and retrievals without casts"
scalaVersion := "3.7.4"
licenses := Seq("MIT" -> url("https://github.com/magaransoft/typed-map/blob/main/LICENSE"))
pgpSigningKey := Some("E20C31E38E557DEEC82006986DC61FDE08C36DE2")
homepage := Some(url("https://github.com/magaransoft/typed-map"))
scalacOptions ++= Seq(
"--explain-types",
"--deprecation",
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-Wunused:all",
"-Werror",
)
scalafixOnCompile := true
inThisBuild(
List(
semanticdbEnabled := true, // enable SemanticDB
)
)
scmInfo := Some(
ScmInfo(
browseUrl = url("https://github.com/magaransoft/typed-map"),
connection = "scm:git@github.com:magaransoft/typed-map.git"
)
)
developers := List(
Developer(
id = "NovaMage",
name = "Ángel Felipe Blanco Guzmán",
email = "novamage@magaran.com",
url = url("https://github.com/NovaMage")
)
)
releaseUseGlobalVersion := false
ThisBuild / versionScheme := Some("semver-spec")
publishMavenStyle := true
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
publishConfiguration := publishConfiguration.value.withOverwrite(false)
Test / test := {
(Test / test).dependsOn(Test / scalafmt).value
}
Test / publishArtifact := false
exportJars := true
Test / parallelExecution := false
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
libraryDependencies += "org.scalatest" %% "scalatest-funspec" % "3.2.19" % "test"
libraryDependencies += "org.scalatestplus" %% "mockito-4-11" % "3.2.18.0" % "test"
pomIncludeRepository := { _ => false }
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
releaseStepCommand("sonaUpload"),
setNextVersion,
commitNextVersion,
pushChanges
)
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}