-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
59 lines (42 loc) · 1.57 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
name := "simpp"
organization := "io.github.vigoo"
dynverSonatypeSnapshots in ThisBuild := true
val scala212 = "2.12.14"
val scala213 = "2.13.6"
scalaVersion := scala213
crossScalaVersions := List(scala212, scala213)
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3")
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.6.1",
"org.atnos" %% "eff" % "5.19.0",
"org.specs2" %% "specs2-core" % "4.12.3" % "test",
"org.specs2" %% "specs2-junit" % "4.12.3" % "test"
)
val scalacOptions212 = Seq("-Ypartial-unification", "-deprecation")
val scalacOptions213 = Seq("-deprecation")
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) => scalacOptions212
case Some((2, 13)) => scalacOptions213
case _ => Nil
})
coverageEnabled in(Test, compile) := true
coverageEnabled in(Compile, compile) := false
// Publishing
publishMavenStyle := true
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
publishTo := sonatypePublishTo.value
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(GitHubHosting("vigoo", "simpp", "[email protected]"))
developers := List(
Developer(id="vigoo", name="Daniel Vigovszky", email="[email protected]", url=url("https://vigoo.github.io"))
)
credentials ++=
(for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield
Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
username,
password)).toSeq