File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 scala : [2.13.17]
4646 env :
4747 SCALA_VERSION : ${{ matrix.scala }}
48+ # The setup-unitycatalog action's script reads SPARK_VERSION (cut to major-minor) to
49+ # decide which `unitycatalog-spark_<major.minor>_2.13` artifact to publish. Matches
50+ # spark_test.yaml's convention.
51+ SPARK_VERSION : ${{ matrix.spark_version }}
4852 steps :
4953 - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
5054 - name : Get Spark version details
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ organizationName := "example"
2020
2121val scala213 = " 2.13.17"
2222val icebergVersion = " 1.4.1"
23- val unityCatalogVersion = " 0.4.1"
23+ val unityCatalogVersion : String = sys.props.getOrElse(" unityCatalogVersion" , {
24+ import scala .sys .process ._
25+ Process (Seq (" bash" , " ../../project/scripts/setup_unitycatalog_main.sh" , " --print-version" )).!! .trim
26+ })
2427val jacksonVersion = " 2.15.4"
2528
2629val defaultDeltaVersion = {
@@ -213,7 +216,7 @@ lazy val root = (project in file("."))
213216 scalaBinaryVersion.value,
214217 getSupportIceberg.value),
215218 libraryDependencies ++= Seq (
216- " io.unitycatalog" %% " unitycatalog-spark" % unityCatalogVersion excludeAll(
219+ " io.unitycatalog" %% s " unitycatalog-spark ${getSparkPackageSuffix.value} " % unityCatalogVersion excludeAll(
217220 ExclusionRule (organization = " com.fasterxml.jackson.core" ),
218221 ExclusionRule (organization = " com.fasterxml.jackson.module" ),
219222 ExclusionRule (organization = " com.fasterxml.jackson.datatype" ),
You can’t perform that action at this time.
0 commit comments