-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
86 lines (61 loc) · 2.22 KB
/
build.sbt
File metadata and controls
86 lines (61 loc) · 2.22 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
import sbtrelease.ReleaseStateTransformations.*
organization := "com.magaran"
pgpSigningKey := Some("E20C31E38E557DEEC82006986DC61FDE08C36DE2")
name := "rtw"
description := "A library for separation of reads and writes in pipeline-style stages"
scalaVersion := "3.7.4"
licenses := Seq("MIT" -> url("https://github.com/magaransoft/rtw/blob/main/LICENSE"))
homepage := Some(url("https://github.com/magaransoft/rtw"))
scalacOptions ++= Seq("--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/rtw"), connection = "scm:git@github.com:magaransoft/rtw.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 += "com.magaran" %% "typed-map" % "0.1.0"
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
}