-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
74 lines (67 loc) · 2.14 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
import sbt.{Credentials, Developer, ScmInfo}
import com.sksamuel.scapegoat.sbt.ScapegoatSbtPlugin.autoImport._
import ch.epfl.scala.sbt.release.ReleaseEarlyPlugin.autoImport._
lazy val commonSettings = Seq(
organization := "org.combinators",
scalaVersion := "2.12.10",
crossScalaVersions := Seq("2.11.12", scalaVersion.value),
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.typesafeRepo("releases")
),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-language:implicitConversions"
),
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.1.0" % "test",
"org.scalatestplus" %% "scalacheck-1-14" % "3.1.0.1" % "test",
"org.scalacheck" %% "scalacheck" % "1.14.1" % "test"
),
headerLicense := Some(HeaderLicense.ALv2("2020", "Jan Bessai")),
scapegoatVersion in ThisBuild := "1.4.1",
concurrentRestrictions in Global ++= {
if (sys.env.get("CI") == Some("github")) Seq(Tags.limitAll(1)) else Seq.empty
}
) ++ publishSettings
lazy val root =
Project(id = "jgitserv", base = file("."))
.settings(commonSettings: _*)
.settings(
moduleName := "jgitserv",
libraryDependencies ++= Seq(
"org.combinators" %% "templating" % "1.1.0",
"com.github.finagle" %% "finchx-core" % "0.31.0",
"org.eclipse.jgit" % "org.eclipse.jgit" % "5.4.0.201906121030-r",
"commons-io" % "commons-io" % "2.6",
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
)
lazy val publishSettings = Seq(
homepage := Some(url("https://www.github.com/combinators/jgitserv")),
licenses := Seq(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")
),
scmInfo := Some(
ScmInfo(
url("https://github.com/combinators/jgitserv"),
"scm:git:[email protected]:combinators/jgitserv.git"
)
),
developers := List(
Developer(
"JanBessai",
"Jan Bessai",
url("http://janbessai.github.io")
)
),
releaseEarlyWith := SonatypePublisher
)
lazy val noPublishSettings = Seq(
publish := Seq.empty,
publishLocal := Seq.empty,
publishArtifact := false
)