@@ -3,6 +3,13 @@ import java.time.Year
33
44val scalaVersions = Seq (" 2.12.15" )
55
6+ val sparkVersion = " 3.1.3"
7+ val catsVersion = " 2.6.1"
8+ val shapelessVersion = " 2.3.3" // to be compatible with Spark 3.1.x
9+ val scalaTestVersion = " 3.2.11"
10+ val geomesaVersion = " 3.3.0"
11+ val geotrellisVersion = " 3.6.1+0-6b5868af+20220321-1909-SNAPSHOT" // "3.6.1"
12+
613lazy val commonSettings = Seq (
714 scalaVersion := scalaVersions.head,
815 crossScalaVersions := scalaVersions,
@@ -52,18 +59,18 @@ lazy val root = (project in file("."))
5259 publish := {},
5360 publishLocal := {}
5461 )
55- .aggregate(core, spatial)
62+ .aggregate(core, spatial, `spatial-index` )
5663
5764lazy val core = project
5865 .settings(commonSettings)
5966 .settings(name := " hiveless-core" )
6067 .settings(
6168 addCompilerPlugin(" org.typelevel" % " kind-projector" % " 0.13.2" cross CrossVersion .full),
6269 libraryDependencies ++= Seq (
63- " org.typelevel" %% " cats-core" % " 2.6.1 " ,
64- " com.chuusai" %% " shapeless" % " 2.3.3 " , // to be compatible with Spark 3.1.x
65- " org.apache.spark" %% " spark-hive" % " 3.1.2 " % Provided ,
66- " org.scalatest" %% " scalatest" % " 3.2.11 " % Test
70+ " org.typelevel" %% " cats-core" % catsVersion ,
71+ " com.chuusai" %% " shapeless" % shapelessVersion,
72+ " org.apache.spark" %% " spark-hive" % sparkVersion % Provided ,
73+ " org.scalatest" %% " scalatest" % scalaTestVersion % Test
6774 )
6875 )
6976
@@ -73,8 +80,19 @@ lazy val spatial = project
7380 .settings(name := " hiveless-spatial" )
7481 .settings(
7582 libraryDependencies ++= Seq (
76- " org.locationtech.geomesa" %% " geomesa-spark-jts" % " 3.3.0" ,
77- " org.scalatest" %% " scalatest" % " 3.2.10" % Test
83+ " org.locationtech.geomesa" %% " geomesa-spark-jts" % geomesaVersion,
84+ " org.scalatest" %% " scalatest" % scalaTestVersion % Test
85+ )
86+ )
87+
88+ lazy val `spatial-index` = project
89+ .dependsOn(spatial % " compile->compile;provided->provided" )
90+ .settings(commonSettings)
91+ .settings(name := " hiveless-spatial-index" )
92+ .settings(
93+ libraryDependencies ++= Seq (
94+ " org.locationtech.geotrellis" %% " geotrellis-store" % geotrellisVersion,
95+ " org.scalatest" %% " scalatest" % scalaTestVersion % Test
7896 ),
7997 assembly / test := {},
8098 assembly / assemblyShadeRules := {
0 commit comments