-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
53 lines (50 loc) · 1.55 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
import sbt.Keys._
import Dependencies._
import Settings._
ThisBuild / scalaVersion := "2.12.15"
ThisBuild / organization := "org.locationtech.geotrellis"
ThisBuild / crossScalaVersions := List("2.12.15", "2.13.6")
lazy val root = Project("geotrellis-geowave", file("."))
.settings(commonSettings)
.settings(
name := "geotrellis-geowave",
initialize := {
val curr = VersionNumber(sys.props("java.specification.version"))
val req = SemanticSelector("=1.8")
if (!curr.matchesSemVer(req)) {
val log = Keys.sLog.value
log.warn(s"Java $req required for GeoTools compatibility. Found Java $curr.\n" +
"Please change the version of Java running sbt.")
}
},
libraryDependencies ++= Seq(
newtype,
java8Compat,
circe("generic-extras").value,
circe("json-schema").value,
geotrellisRaster,
geotrellisStore,
geowaveStore,
geowaveIndex,
geowaveGeotime,
geowaveGuava % Test, // tracking geowave guava requirement
geowaveCassandra % Test,
geotrellisRasterTestkit % Test,
scalatest % Test,
logbackClassic % Test
),
Test / fork := true
)
lazy val `geowave-benchmark` = (project in file("geowave/benchmark"))
.dependsOn(root)
.enablePlugins(JmhPlugin)
.settings(Seq(
name := "geotrellis-geowave-benchmark",
libraryDependencies ++= Seq(
geowaveGuava, // tracking geowave guava requirement
geowaveCassandra,
logbackClassic
),
Test / fork := true
) ++ commonSettings)
.settings(publish / skip := true)