-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
85 lines (64 loc) · 2.35 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
77
78
79
80
81
82
83
84
85
name := "webknossos-wrap"
scalaVersion := "2.13.11"
javaOptions in test ++= Seq("-Xmx512m")
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
scalacOptions ++= Seq("-unchecked", "-deprecation")
scalacOptions in (Compile, doc) ++= Seq(
"-unchecked",
"-deprecation",
"-implicits"
)
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
organization := "com.scalableminds"
organizationName := "scalable minds GmbH"
organizationHomepage := Some(url("http://scalableminds.com"))
startYear := Some(2017)
description := "A small library to load webknossos-wrap encoded files."
homepage := Some(url("https://github.com/scalableminds/webknossos-wrap"))
licenses := Seq("MIT" -> url("https://github.com/scalableminds/webknossos-wrap/blob/master/LICENSE"))
scmInfo := Some(ScmInfo(
url("https://github.com/scalableminds/webknossos-wrap"),
"https://github.com/scalableminds/webknossos-wrap.git"))
pomExtra := (
<developers>
<developer>
<id>fm3</id>
<name>Florian M</name>
<url>https://github.com/fm3</url>
</developer>
</developers>
)
libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "23.0",
"org.lz4" % "lz4-java" % "1.8.0",
"net.liftweb" %% "lift-common" % "3.5.0",
"net.liftweb" %% "lift-util" % "3.5.0",
"org.apache.commons" % "commons-lang3" % "3.13.0",
"commons-io" % "commons-io" % "2.13.0",
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
val root = (project in file("."))
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion,
"commitHash" -> new java.lang.Object() {
override def toString: String = {
try {
val extracted = new java.io.InputStreamReader(java.lang.Runtime.getRuntime.exec("git rev-parse HEAD").getInputStream)
new java.io.BufferedReader(extracted).readLine()
} catch {
case t: Throwable => "get git hash failed"
}
}
}.toString()
),
buildInfoPackage := "webknossoswrap",
buildInfoOptions := Seq(BuildInfoOption.ToJson, BuildInfoOption.BuildTime)
)