-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
69 lines (64 loc) · 1.95 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
val mainScala = "2.12.20"
val allScala = Seq(mainScala, "2.13.15")
organization := "com.nequissimus"
name := "zio-slf4j"
homepage := Some(url("http://nequissimus.com/"))
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
scalaVersion := mainScala
developers := List(
Developer(
"NeQuissimus",
"Tim Steinbach",
url("http://nequissimus.com/")
)
)
Test / parallelExecution := false
Test / fork := true
pgpPublicRing := file("/tmp/public.asc")
pgpSecretRing := file("/tmp/secret.asc")
releaseEarlyWith := SonatypePublisher
scmInfo := Some(
ScmInfo(url("https://github.com/NeQuissimus/zio-slf4j/"), "scm:git:[email protected]:NeQuissimus/zio-slf4j.git")
)
libraryDependencies ++= Seq(
"com.lihaoyi" %% "sourcecode" % "0.4.2",
"com.lihaoyi" %% "utest" % "0.8.4" % Test,
"org.scalaz" %% "scalaz-core" % "7.3.8" % Optional,
"dev.zio" %% "zio" % "1.0.18",
"org.slf4j" % "slf4j-api" % "2.0.16"
)
testFrameworks += new TestFramework("utest.runner.Framework")
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-explaintypes",
"-Yrangepos",
"-feature",
"-Xfuture",
"-language:higherKinds",
"-language:existentials",
"-unchecked",
"-Xlint:_,-type-parameter-shadow",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-value-discard"
) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) =>
Seq(
"-Xsource:2.13",
"-Yno-adapted-args",
"-Ypartial-unification",
"-Ywarn-extra-implicit",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-opt-inline-from:<source>",
"-opt-warnings",
"-opt:l:inline"
)
case _ => Nil
})
crossScalaVersions := allScala