-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
101 lines (81 loc) · 2.46 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
name := "endpoints-elm"
version := "0.10.0"
organization := "io.scalaland"
scalaVersion := "2.12.8"
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](version)
buildInfoPackage := "io.scalaland.endpoints.elm"
val versions = new {
val endpoints = "0.10.0"
val utest = "0.7.1"
}
libraryDependencies ++= Seq(
"org.julienrf" %% "endpoints-algebra" % versions.endpoints % "provided",
"org.julienrf" %% "endpoints-algebra-json-schema" % versions.endpoints % "provided",
"com.lihaoyi" %% "utest" % versions.utest % "test",
"io.scalaland" %% "endpoints-json-schema-macros" % "0.10.0" % "test"
)
testFrameworks += new TestFramework("utest.runner.Framework")
scalacOptions ++= Seq(
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-unchecked",
"-deprecation",
"-explaintypes",
"-feature",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
// "-Xfatal-warnings",
"-Xfuture",
"-Xlint:adapted-args",
"-Xlint:delayedinit-select",
"-Xlint:doc-detached",
"-Xlint:inaccessible",
"-Xlint:infer-any",
"-Xlint:nullary-override",
"-Xlint:nullary-unit",
"-Xlint:option-implicit",
"-Xlint:package-object-classes",
"-Xlint:poly-implicit-overload",
"-Xlint:private-shadow",
"-Xlint:stars-align",
"-Xlint:type-parameter-shadow",
"-Xexperimental",
"-Yno-adapted-args",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-Xlint:by-name-right-associative",
"-Xlint:unsound-match"
)
scalacOptions in(Compile, console) --= Seq("-Ywarn-unused:imports", "-Xfatal-warnings")
homepage := Some(url("https://github.com/scalalandio"))
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
scmInfo := Some(
ScmInfo(url("https://github.com/scalalandio/endpoints-elm"), "scm:git:git@github.com:scalalandio/endpoints-elm.git")
)
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")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<developers>
<developer>
<id>krzemin</id>
<name>Piotr Krzemiński</name>
<url>http://github.com/krzemin</url>
</developer>
<developer>
<id>MateuszKubuszok</id>
<name>Mateusz Kubuszok</name>
<url>http://github.com/MateuszKubuszok</url>
</developer>
</developers>
)