-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
76 lines (56 loc) · 1.83 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
import ReleaseTransformations._
name := "common"
organization := "ai.lum"
scalaVersion := "2.12.10"
crossScalaVersions := Seq("2.11.12", "2.12.10")
scalacOptions ++= Seq(
"-encoding", "utf-8",
"-deprecation",
"-explaintypes",
"-feature",
"-unchecked",
"-Xfatal-warnings",
"-Xfuture",
"-Xlint",
)
// the console can't really cope with some scalac flags
scalacOptions in (Compile, console) --= Seq("-Xlint", "-Xfatal-warnings")
// scope scalacOptions to the doc task to configure scaladoc
scalacOptions in (Compile, doc) += "-no-link-warnings" // suppresses problems with scaladoc @throws links
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"com.typesafe" % "config" % "1.3.3",
"org.apache.commons" % "commons-lang3" % "3.9",
"org.apache.commons" % "commons-text" % "1.7",
"commons-io" % "commons-io" % "2.6",
"com.ibm.icu" % "icu4j" % "66.1",
)
// release steps
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommandAndRemaining("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
// scaladoc hosting
enablePlugins(SiteScaladocPlugin)
enablePlugins(GhpagesPlugin)
git.remoteRepo := "[email protected]:lum-ai/common.git"
// Publishing settings
publishTo := sonatypePublishToBundle.value
publishMavenStyle := true
publishArtifact in Test := false
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(GitHubHosting("lum-ai", "common", "[email protected]"))
developers := List(
Developer(id="marcovzla", name="Marco Antonio Valenzuela Escárcega", email="[email protected]", url=url("https://lum.ai/"))
)