-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (31 loc) · 1.59 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
ThisBuild / version := "0.3.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.11.8"
ThisBuild / organization := "io.arlas"
resolvers += "osgeo" at "http://download.osgeo.org/webdav/geotools/"
resolvers += "boundless" at "http://repo.boundlessgeo.com/main"
resolvers += "geotoolkit" at "http://maven.geotoolkit.org/"
resolvers += "jboss" at "https://repository.jboss.org/maven2/"
val sparkSQL = "org.apache.spark" %% "spark-sql" % "2.3.1" % "provided"
val sparkMLlib = "org.apache.spark" %% "spark-mllib" % "2.3.1" % "provided"
val spark = Seq(sparkSQL,sparkMLlib)
val sparkCassandraConnector = "com.datastax.spark" %% "spark-cassandra-connector" % "2.3.2" % "provided"
val cassandra = Seq(sparkCassandraConnector)
val scalaTest = "org.scalatest" %% "scalatest" % "2.2.5"
val elasticSearch = "org.elasticsearch" %% "elasticsearch-spark-20" % "6.4.0" % "provided"
val elastic = Seq(elasticSearch)
val gtReferencing = "org.geotools" % "gt-referencing" % "20.1" % "provided"
val gtGeometry = "org.geotools" % "gt-geometry" % "20.1" % "provided"
val geotools = Seq(gtReferencing, gtGeometry)
lazy val arlasData = (project in file("."))
.settings(
name := "arlas-proc",
libraryDependencies ++= spark,
libraryDependencies ++= cassandra,
libraryDependencies ++= elastic,
libraryDependencies ++= geotools,
libraryDependencies += scalaTest % Test
)
// publish artifact to GCP
enablePlugins(GcsPlugin)
gcsProjectId := sys.props.getOrElse("gcsProject", default = "arlas-lsfp")
gcsBucket := sys.props.getOrElse("gcsBucket", default = "arlas-proc")+sys.props.getOrElse("gcsBucketPath", default = "/artifacts")