-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.sbt
65 lines (49 loc) · 1.99 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
import scalariform.formatter.preferences._
name := "moultingyaml"
organization := "net.jcazevedo"
version := "0.4.3-SNAPSHOT"
scalaVersion := "2.13.0"
crossScalaVersions := Seq("2.13.0", "2.12.8", "2.11.12", "2.10.7")
libraryDependencies ++= Seq(
"com.github.nscala-time" %% "nscala-time" % "2.22.0",
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.yaml" % "snakeyaml" % "1.26",
"org.scalatest" %% "scalatest" % "3.0.8" % "test")
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-feature",
"-language:implicitConversions") ++
(CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, major)) if major >= 13 => Seq("-Ywarn-unused:imports")
case Some((2, major)) if major >= 11 => Seq("-Ywarn-unused-import")
case _ => Seq()
})
scalacOptions in (Compile, console) ~= (_ filterNot (Set("-Ywarn-unused:imports", "-Ywarn-unused-import").contains))
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value
scalariformPreferences := scalariformPreferences.value
.setPreference(DanglingCloseParenthesis, Prevent)
.setPreference(DoubleIndentConstructorArguments, true)
publishMavenStyle := true
publishTo := Some(
if (version.value.trim.endsWith("SNAPSHOT"))
"snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
else
"releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
licenses := Seq("MIT License" ->
url("http://www.opensource.org/licenses/mit-license.php"))
homepage := Some(url("https://github.com/jcazevedo/moultingyaml"))
pomExtra := (
<scm>
<url>https://github.com/jcazevedo/moultingyaml.git</url>
<connection>scm:git:[email protected]:jcazevedo/moultingyaml.git</connection>
</scm>
<developers>
<developer>
<id>jcazevedo</id>
<name>Joao Azevedo</name>
<url>http://jcazevedo.net</url>
</developer>
</developers>)