-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
75 lines (68 loc) · 2.24 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
lazy val scala212 = "2.12.10"
lazy val scala213 = "2.13.4"
val versions = new {
val specs2 = "4.10.5"
val jackson = "2.11.3"
val collectionCompat = "2.3.0"
val scalaj = "2.4.2"
}
organization := "io.github.periskop-dev"
organizationName := "Periskop"
organizationHomepage := Some(url("https://periskop.io/"))
name := "periskop-scala"
description := "Scala low level client for Periskop"
libraryDependencies ++= Seq(
"org.scalaj" %% "scalaj-http" % versions.scalaj,
"org.scala-lang.modules" %% "scala-collection-compat" % versions.collectionCompat,
"com.fasterxml.jackson.core" % "jackson-databind" % versions.jackson,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % versions.jackson,
"org.specs2" %% "specs2-core" % versions.specs2 % "test",
"org.specs2" %% "specs2-mock" % versions.specs2 % "test"
)
crossScalaVersions := Seq(scala212, scala213)
scalaVersion := scala213
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-explaintypes",
"-feature",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-value-discard"
)
// publishing to maven central
scmInfo := Some(
ScmInfo(
url("https://github.com/periskop-dev/periskop-scala"),
"scm:[email protected]:periskop-dev/periskop-scala.git"
)
)
developers := List(
Developer(
id = "jcreixell",
name = "Jorge Creixell",
email = "[email protected]",
url = url("https://github.com/jcreixell")
),
Developer(
id = "marctc",
name = "Marc Tuduri",
email = "[email protected]",
url = url("https://github.com/marctc")
)
)
licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://github.com/periskop-dev/periskop-scala"))
// Remove all additional repository other than Maven Central from POM
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://s01.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
publishConfiguration := publishConfiguration.value.withOverwrite(true)
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)