-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
66 lines (60 loc) · 2.52 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
lazy val commonSettings = Seq(
name := "avro-shapefile",
version := "0.1.0",
scalaVersion := Version.scala,
crossScalaVersions := Seq("2.11.5", "2.10.5"),
organization := "com.azavea",
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"),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
resolvers ++= Seq(
"java3d" at "http://maven.geotoolkit.org/",
"geosolutions" at "http://maven.geo-solutions.it/",
"osgeo" at "http://download.osgeo.org/webdav/geotools/",
"maven" at "http://central.maven.org/maven2/",
Resolver.sonatypeRepo("public")
),
libraryDependencies ++= Seq(
"com.googlecode.efficient-java-matrix-library" % "ejml" % "0.25",
"com.vividsolutions" % "jts" % "1.13",
"net.java.dev.jsr-275" % "jsr-275" % "1.0-beta-2",
"org.geotools" % "gt-data" % Version.geotools,
"org.geotools" % "gt-shapefile" % Version.geotools,
"org.geotools" % "gt-api" % Version.geotools,
"org.geotools" % "gt-main" % Version.geotools,
"org.geotools" % "gt-metadata" % Version.geotools,
"org.geotools" % "gt-opengis" % Version.geotools,
"org.geotools" % "gt-referencing" % Version.geotools,
"org.geotools" % "gt-epsg-hsql" % Version.geotools,
"com.github.scopt" %% "scopt" % "3.5.0"
)
)
// When creating fat jar, remote some files with
// bad signatures and resolve conflicts by taking the first
// versions of shared packaged types.
assemblyMergeStrategy in assembly := {
case "reference.conf" => MergeStrategy.concat
case "application.conf" => MergeStrategy.concat
case "META-INF/MANIFEST.MF" => MergeStrategy.discard
case "META-INF\\MANIFEST.MF" => MergeStrategy.discard
case "META-INF/ECLIPSEF.RSA" => MergeStrategy.discard
case "META-INF/ECLIPSEF.SF" => MergeStrategy.discard
case _ => MergeStrategy.first
}
lazy val root = Project("avro-shapefile", file("."))
.settings(commonSettings: _*)
lazy val converter = Project("converter", file("converter"))
.settings(commonSettings: _*)
lazy val sparkIngest = Project("spark-gm-ingest", file("spark-gm-ingest"))
.settings(commonSettings: _*)