-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
78 lines (64 loc) · 2.1 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
// based on http://caryrobbins.com/dev/sbt-publishing/
val _scalaVersion = "3.3.0"
organization := "io.github.makingthematrix"
sonatypeProfileName := "io.github.makingthematrix"
name := "signals3"
homepage := Some(url("https://github.com/makingthematrix/signals3"))
licenses := Seq("GPL 3.0" -> url("https://www.gnu.org/licenses/gpl-3.0.en.html"))
ThisBuild / scalaVersion := _scalaVersion
ThisBuild / versionScheme := Some("semver-spec")
Test / scalaVersion := _scalaVersion
val standardOptions = Seq(
"-deprecation",
"-feature",
"-unchecked",
"-encoding",
"utf8"
)
val scala3Options = Seq(
"-explain",
"-Ysafe-init",
"-Ycheck-all-patmat",
"-Wunused:imports"
)
publishMavenStyle := true
Test / publishArtifact := false
pomIncludeRepository := { _ => false }
ThisBuild / publishTo := sonatypePublishToBundle.value
// For all Sonatype accounts created on or after February 2021
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
scmInfo := Some(
ScmInfo(
url("https://github.com/makingthematrix/signals3"),
"scm:git:[email protected]:makingthematrix/signals3.git"
)
)
developers := List(
Developer(
"makingthematrix",
"Maciej Gorywoda",
url("https://github.com/makingthematrix"))
)
resolvers ++=
Resolver.sonatypeOssRepos("releases") ++
Resolver.sonatypeOssRepos("public") ++
Seq(Resolver.mavenLocal)
publishMavenStyle := true
publishConfiguration := publishConfiguration.value.withOverwrite(true)
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
publishM2Configuration := publishM2Configuration.value.withOverwrite(true)
lazy val root = (project in file("."))
.settings(
name := "signals3",
libraryDependencies ++= Seq(
//Test dependencies
"org.scalameta" %% "munit" % "0.7.29" % "test"
),
scalacOptions ++= standardOptions ++ scala3Options
)
testFrameworks += new TestFramework("munit.Framework")
exportJars := true
Compile / packageBin / packageOptions +=
Package.ManifestAttributes("Automatic-Module-Name" -> "signals3")
usePgpKeyHex(sys.env.getOrElse("PGP_KEY_HEX", ""))