-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
101 lines (89 loc) · 2.68 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import Dependencies._
import Versions._
ThisBuild / organization := "be.broij"
ThisBuild / organizationName := "broij"
ThisBuild / organizationHomepage := Some(url("https://www.linkedin.com/in/julienbroi/"))
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/broij/zarrow"), "scm:[email protected]:broij/zarrow.git")
)
ThisBuild / developers := List(
Developer(
id = "broij",
name = "Julien Broi",
email = "[email protected]",
url = url("https://www.linkedin.com/in/julienbroi/")
)
)
ThisBuild / description := "Effectful mappings with ZIO"
ThisBuild / licenses := List("Apache License 2.0" -> new URL("https://www.apache.org/licenses/LICENSE-2.0/"))
ThisBuild / homepage := Some(url("https://github.com/broij/zarrow"))
ThisBuild / Test / publishArtifact := false
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / credentials += Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
sys.env.get("SONATYPE_USER").getOrElse("N/A"),
sys.env.get("SONATYPE_PWD").getOrElse("N/A")
)
ThisBuild / publishMavenStyle := true
ThisBuild / version := "2.1.3"
ThisBuild / scalaVersion := "3.6.3"
ThisBuild / crossScalaVersions := Seq("3.6.3", "2.13.16", "2.12.20")
usePgpKeyHex("F20744182C3B3EB4FF46C78AB97796F0040A9891")
val scala2CompilerOptions =
Seq(
"-Xfatal-warnings",
"-Xlint",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Wconf:msg=parameter value (evidence.*|tag.*) in method .* is never used:s",
"-deprecation",
"-unchecked",
"-explaintypes",
"-feature"
)
val scala213CompilerOptions =
Seq(
"-Xfatal-warnings",
"-Xlint",
"-Wconf:msg=.*higherKinds.*:s",
"-Ywarn-unused",
"-Wunused:imports",
"-deprecation",
"-unchecked",
"-explaintypes",
"-feature"
)
val scala3CompilerOptions =
Seq(
"-Wunused:imports",
"-Werror",
"-Wunused:params",
"-Yexplicit-nulls",
"-deprecation",
"-unchecked",
"-explain-types",
"-feature"
)
ThisBuild / scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => scala3CompilerOptions
case Some((2, 13)) => scala213CompilerOptions
case _ => scala2CompilerOptions
}
}
val `zarrow` = (project in file("."))
.settings(
libraryDependencies ++= Seq(
zio,
zioTest,
zioTestMagnolia,
zioTestSbt
)
)
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")