forked from NCAR/nujan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·66 lines (61 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
ThisBuild / organization := "io.latis-data"
ThisBuild / scalaVersion := "2.12.6"
val artifactory = "http://web-artifacts.lasp.colorado.edu/artifactory/"
lazy val nujan = (project in file("."))
.settings(commonSettings)
.settings(publishSettings)
.settings(
name := "nujan",
libraryDependencies ++= Seq(
"edu.ucar" % "cdm" % "4.6.10",
"commons-codec" % "commons-codec" % "1.11",
"commons-httpclient" % "commons-httpclient" % "3.1"
),
resolvers += "Unidata" at "https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases"
)
lazy val commonSettings = compilerFlags ++ Seq(
Compile / compile / wartremoverWarnings ++= Warts.allBut(
Wart.Any, // false positives
Wart.Nothing, // false positives
Wart.Product, // false positives
Wart.Serializable // false positives
),
// Test suite dependencies
libraryDependencies ++= Seq(
"junit" % "junit" % "4.12" % Test,
"com.novocode" % "junit-interface" % "0.11" % Test
),
// Resolvers for our Artifactory repos
resolvers ++= Seq(
"Artifactory Release" at artifactory + "sbt-release",
"Artifactory Snapshot" at artifactory + "sbt-snapshot"
),
crossScalaVersions := Seq("2.11.8", scalaVersion.value)
)
lazy val compilerFlags = Seq(
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "utf-8",
"-feature"
),
Compile / compile / scalacOptions ++= Seq(
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard"
)
)
lazy val publishSettings = Seq(
publishTo := {
if (isSnapshot.value) {
Some("snapshots" at artifactory + "sbt-snapshot")
} else {
Some("releases" at artifactory + "sbt-release")
}
},
credentials ++= Seq(
Path.userHome / ".artifactorycredentials"
).filter(_.exists).map(Credentials(_)),
releaseVersionBump := sbtrelease.Version.Bump.Minor
)