-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathbuild.sbt
64 lines (56 loc) · 2.32 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
lazy val commonSettings = Seq(
version := Version.geopyspark,
scalaVersion := Version.scala,
description := "GeoPySpark",
organization := "org.locationtech.geotrellis",
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")),
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-Yinline-warnings",
"-language:implicitConversions",
"-language:reflectiveCalls",
"-language:higherKinds",
"-language:postfixOps",
"-language:existentials",
"-feature"
),
shellPrompt := { s => Project.extract(s).currentProject.id + " > " },
externalResolvers := Seq(
"Geotoolkit Repo" at "http://maven.geotoolkit.org",
"OSGeo GeoTools" at "http://download.osgeo.org/webdav/geotools/",
"geosolutions" at "http://maven.geo-solutions.it/",
"LocationTech Snapshots" at "https://repo.locationtech.org/content/groups/snapshots",
"LocationTech Releases" at "https://repo.locationtech.org/content/groups/releases",
Resolver.bintrayRepo("azavea", "maven"),
Resolver.bintrayRepo("azavea", "geotrellis"),
DefaultMavenRepository,
Resolver.file("local", file(Path.userHome.absolutePath + "/.ivy2/local"))(Resolver.ivyStylePatterns)
),
addCompilerPlugin("org.spire-math" % "kind-projector" % "0.9.3" cross CrossVersion.binary),
addCompilerPlugin("org.scalamacros" %% "paradise" % "2.1.0" cross CrossVersion.full)
)
lazy val publishSettings =
Seq(
bintrayOrganization := Some("azavea"),
bintrayRepository := "maven",
bintrayVcsUrl := Some("https://github.com/locationtech-labs/geopyspark.git"),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false},
homepage := Some(url("https://github.com/locationtech-labs/geopyspark"))
)
scalaVersion := Version.scala
scalaVersion in ThisBuild := Version.scala
lazy val root = Project("root", file("."))
lazy val utilProject = Project("util", file("util"))
.settings(commonSettings: _*)
.settings(publishSettings: _*)
lazy val geotoolsProject = Project("geotools", file("geotools"))
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.dependsOn(utilProject)
lazy val geotrellisProject = Project("geotrellis-backend", file("geotrellis"))
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.dependsOn(utilProject, geotoolsProject)