Skip to content

Commit f0fa6f6

Browse files
committed
examples/scala/build.sbt
Signed-off-by: Yi Li <yi.li@databricks.com>
1 parent ec8a101 commit f0fa6f6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

examples/scala/build.sbt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ organizationName := "example"
2020

2121
val scala213 = "2.13.17"
2222
val 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+
})
2427
val jacksonVersion = "2.15.4"
2528

2629
val 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"),

0 commit comments

Comments
 (0)