Skip to content

Commit

Permalink
Add jackson override for spark
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Jun 14, 2024
1 parent 0b5545b commit 45879a0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/g8/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ val flinkVersion = "1.17.0"
$endif$
$if(SparkRunner.truthy)$
val sparkVersion = "3.5.0"
val jacksonVersion = "2.16.0"
$endif$

$if(DataflowFlexTemplate.truthy)$
Expand Down Expand Up @@ -73,6 +74,15 @@ lazy val root: Project = project
"com.spotify" %% "scio-test-core" % scioVersion % Test,
"org.slf4j" % "slf4j-simple" % slf4jVersion % Test
),
$if(SparkRunner.truthy)$
// see https://github.com/apache/beam/issues/18022
dependencyOverrides ++= Seq(
"com.fasterxml.jackson.core" % "jackson-annotations" % jacksonVersion,
"com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion,
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion
),
$endif$
$if(DataflowFlexTemplate.truthy)$
Docker / packageName := s"gcr.io/\${gcpProject.value}/dataflow/templates/\${name.value}",
Docker / daemonUserUid := None,
Expand Down

0 comments on commit 45879a0

Please sign in to comment.