Skip to content

Commit

Permalink
Upgrade GT → 3.7.0-SNAPSHOT, Geomesa → 3.2.2, Scala → 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jpolchlo committed Dec 17, 2021
1 parent 691e789 commit 01fd97b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Upgrade to Scala 2.12; GT 3.7.0-SNAPSHOT; Geomesa Spark JTS 3.2.2 (this standardizes on JTS 1.17.0)

### Changed

### Fixed
Expand Down
9 changes: 3 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ lazy val commonSettings = Seq(

cancelable in Global := true,

scalaVersion in ThisBuild := Version.scala2_11,
scalaVersion in ThisBuild := Version.scala2_12,

crossScalaVersions := Seq(Version.scala2_11, Version.scala2_12),
//crossScalaVersions := Seq(Version.scala2_12),

scalacOptions := Seq(
"-deprecation",
Expand All @@ -40,13 +40,10 @@ lazy val commonSettings = Seq(
scalacOptions in (Compile, console) ~= { _.filterNot(Set("-Ywarn-unused-import", "-Ywarn-unused:imports")) },

/* For Monocle's Lens auto-generation */
addCompilerPlugin("org.scalamacros" %% "paradise" % "2.1.0" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" %% "paradise" % "2.1.1" cross CrossVersion.full),

resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.bintrayRepo("lonelyplanet", "maven"),
Resolver.bintrayRepo("kwark", "maven"), // Required for Slick 3.1.1.2, see https://github.com/azavea/raster-foundry/pull/1576
Resolver.bintrayRepo("bkirwi", "maven"), // Required for `decline` dependency
"eclipse-releases" at "https://repo.eclipse.org/content/groups/releases",
"eclipse-snapshots" at "https://repo.eclipse.org/content/groups/snapshots",
"geosolutions" at "http://maven.geo-solutions.it/",
Expand Down
6 changes: 3 additions & 3 deletions project/Version.scala
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
object Version {
val awscala = "0.8.1"
val geotrellis = "3.5.1"
val geotrellis = "3.7.0-SNAPSHOT"
val scala2_11 = "2.11.12"
val scala2_12 = "2.12.12"
val geomesa = "2.2.1"
val geomesa = "3.2.2"
val decline = "0.6.1"
val cats = "1.6.1"
val scalactic = "3.0.6"
val scalatest = "3.0.3"
val spark = "2.4.4"
val spark = "2.4.7"
val kryo = "4.0.2"
val circe = "0.11.0"
val scalaLogging = "3.9.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.apache.spark.sql.catalyst.encoders.{ExpressionEncoder, RowEncoder}
import org.apache.spark.sql.sources.v2.reader.InputPartitionReader

import scala.collection.parallel.ForkJoinTaskSupport
import scala.concurrent.forkjoin.ForkJoinPool
import java.util.concurrent.ForkJoinPool
import scala.reflect.runtime.universe.TypeTag

abstract class ReplicationStreamBatchReader[T <: Product: TypeTag](baseURI: URI,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class MultiPolygonRelationReconstructionSpec extends PropSpec with TableDrivenPr
val expected = fixture.wkt.map(wktReader.read)

try {
actual should ===(expected)
actual.zip(expected).forall{ case (act, exp) => if (act.isEmpty) exp.isEmpty else exp.buffer(1e-6).contains(act) } should be (true)
} catch {
case e: Throwable =>
println(s"${fixture.id} actual:")
Expand Down

0 comments on commit 01fd97b

Please sign in to comment.