-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
70 lines (68 loc) · 1.85 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
import Dependencies._
ThisBuild / scalaVersion := "2.12.11"
ThisBuild / organization := "io.regadas"
ThisBuild / organizationName := "regadas"
ThisBuild / licenses := Seq(
"APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")
)
ThisBuild / homepage := Some(url("https://github.com/regadas/scio-contextual"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/regadas/scio-contextual"),
"scm:[email protected]:regadas/scio-contextual.git"
)
)
ThisBuild / developers := List(
Developer(
id = "regadas",
name = "Filipe Regadas",
email = "[email protected]",
url = url("https://github.com/regadas")
)
)
ThisBuild / publishMavenStyle := true
ThisBuild / pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toArray)
ThisBuild / credentials += (for {
username <- sys.env.get("SONATYPE_USERNAME")
password <- sys.env.get("SONATYPE_PASSWORD")
} yield Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
username,
password
))
ThisBuild / dynverSonatypeSnapshots := true
ThisBuild / publishTo := sonatypePublishToBundle.value
lazy val `scio-contextual` = project
.in(file("."))
.settings(
name := "scio-contextual",
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-feature",
"-explaintypes",
"-unchecked",
"-Ywarn-dead-code",
"-Ywarn-value-discard",
"-Ywarn-unused",
"-Xfatal-warnings",
"-deprecation",
"-Xlint"
) ++ {
if (scalaVersion.value.startsWith("2.12")) {
Seq("-Ypartial-unification")
} else {
Nil
}
},
// crossScalaVersions := Seq("2.12.11", scalaVersion.value),
libraryDependencies ++= Seq(
Contextual,
ScioBigQuery,
MUnit % Test
),
testFrameworks += new TestFramework("munit.Framework"),
mdocOut := baseDirectory.value
)
.enablePlugins(MdocPlugin)