File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ dependencies {
1515 implementation " com.google.cloud.spark:spark-2.4-bigquery:0.26.0-preview"
1616 } else if (sparkVersion. startsWith(" 3.1" ) || sparkVersion. startsWith(" 3.2" )) {
1717 implementation " com.google.cloud.spark:spark-3.1-bigquery:0.26.0-preview"
18+ } else if (sparkVersion. startsWith(" 3.0" )) {
19+ implementation " com.google.cloud.spark:spark-bigquery-with-dependencies_$scalaVersion :0.26.0"
1820 }
1921 implementation " org.scala-lang:scala-library:$scalaCompt "
2022 implementation " org.scala-lang.modules:scala-collection-compat_$scalaVersion :2.6.0"
Original file line number Diff line number Diff line change @@ -292,6 +292,8 @@ shadowJar {
292292 include dependency(" com.google.cloud.spark:spark-2.4-bigquery:0.26.0-preview" )
293293 } else if (sparkVersion. startsWith(" 3.1" ) || sparkVersion. startsWith(" 3.2" )) {
294294 include dependency(" com.google.cloud.spark:spark-3.1-bigquery:0.26.0-preview" )
295+ } else if (sparkVersion. startsWith(" 3.0" )) {
296+ include dependency(" com.google.cloud.spark:spark-bigquery-with-dependencies_$scalaVersion :0.26.0" )
295297 }
296298 }
297299 relocate(" com.google" , " com.github.sharpdata.sharpetl.google" ) {
@@ -392,6 +394,8 @@ task copyDependencies(type: Copy) {
392394 include(" spark-2.4-bigquery-0.26.0-preview.jar" )
393395 } else if (sparkVersion. startsWith(" 3.1" ) || sparkVersion. startsWith(" 3.2" )) {
394396 include(" spark-3.1-bigquery-0.26.0-preview.jar" )
397+ } else if (sparkVersion. startsWith(" 3.0" )) {
398+ include(" spark-bigquery-with-dependencies_$scalaVersion -0.26.0.jar" )
395399 }
396400}
397401
You can’t perform that action at this time.
0 commit comments