-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathbuild.sbt
More file actions
1708 lines (1546 loc) · 73.2 KB
/
build.sbt
File metadata and controls
1708 lines (1546 loc) · 73.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (2021) The Delta Lake Project Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// scalastyle:off line.size.limit
import java.nio.file.Files
import sbtprotoc.ProtocPlugin.autoImport._
import xsbti.compile.CompileAnalysis
import Checkstyle._
import ShadedIcebergBuild._
import Mima._
import Unidoc._
// Scala versions
val scala213 = "2.13.17"
val all_scala_versions = Seq(scala213)
// Due to how publishArtifact is determined for javaOnlyReleaseSettings, incl. storage
// It was necessary to change default_scala_version to scala213 in build.sbt
// to build the project with Scala 2.13 only
// As a setting, it's possible to set it on command line easily
// sbt 'set default_scala_version := 2.13.16' [commands]
// FIXME Why not use scalaVersion?
val default_scala_version = settingKey[String]("Default Scala version")
Global / default_scala_version := scala213
// Scala version to use for all projects
scalaVersion := default_scala_version.value
// crossScalaVersions must be set to Nil on the root project to avoid conflicts
crossScalaVersions := Nil
val internalModuleNames = settingKey[Set[String]]("Internal module artifact names to exclude from POM")
// Spark version to delta-spark and its dependent modules
// For more information see CrossSparkVersions.scala
val sparkVersion = settingKey[String]("Spark version")
// Dependent library versions
val defaultSparkVersion = SparkVersionSpec.DEFAULT.fullVersion // Spark version to use for testing in non-delta-spark related modules
val hadoopVersion = "3.4.2"
val sparkVersionForKernelTest = "4.0.0"
val scalaTestVersion = "3.2.15"
val scalaTestVersionForConnectors = "3.0.8"
val parquet4sVersion = "1.9.4"
val protoVersion = "3.25.1"
val grpcVersion = "1.62.2"
val flinkVersion = "2.0.1"
// Define the ecosystem support flags.
val supportIceberg = CrossSparkVersions.getSparkVersionSpec().supportIceberg
val supportHudi = CrossSparkVersions.getSparkVersionSpec().supportHudi
// For Java 11 use the following on command line
// sbt 'set targetJvm := "11"' [commands]
val targetJvm = settingKey[String]("Target JVM version")
Global / targetJvm := "11"
lazy val javaVersion = sys.props.getOrElse("java.version", "Unknown")
lazy val javaVersionInt = javaVersion.split("\\.")(0).toInt
lazy val commonSettings = Seq(
organization := "io.delta",
scalaVersion := default_scala_version.value,
crossScalaVersions := all_scala_versions,
fork := true,
scalacOptions ++= Seq("-Ywarn-unused:imports"),
javacOptions ++= {
if (javaVersion.startsWith("1.8")) {
Seq.empty // `--release` is supported since JDK 9 and the minimum supported JDK is 8
} else {
Seq("--release", targetJvm.value) // generated bytecode should be usable with JVM 1.8
}
},
// Make sure any tests in any project that uses Spark is configured for running well locally
Test / javaOptions ++= Seq(
"-Dspark.ui.enabled=false",
"-Dspark.ui.showConsoleProgress=false",
"-Dspark.databricks.delta.snapshotPartitions=2",
"-Dspark.sql.shuffle.partitions=5",
"-Ddelta.log.cacheSize=3",
"-Dspark.databricks.delta.delta.log.cacheSize=3",
"-Dspark.sql.sources.parallelPartitionDiscovery.parallelism=5",
"-Xmx1024m"
) ++ {
if (javaVersionInt >= 17) {
Seq( // For Java 17 +
"--add-opens=java.base/java.nio=ALL-UNNAMED",
"--add-opens=java.base/java.lang=ALL-UNNAMED",
"--add-opens=java.base/java.net=ALL-UNNAMED",
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED",
"--add-opens=java.base/sun.util.calendar=ALL-UNNAMED"
)
} else {
Seq.empty
}
},
testOptions += Tests.Argument("-oF"),
// Unidoc settings: by default dont document any source file
unidocSourceFilePatterns := Nil,
)
////////////////////////////
// START: Code Formatting //
////////////////////////////
/** Enforce java code style on compile. */
def javafmtCheckSettings(): Seq[Def.Setting[Task[CompileAnalysis]]] = Seq(
(Compile / compile) := ((Compile / compile) dependsOn (Compile / javafmtCheckAll)).value
)
/** Enforce scala code style on compile. */
def scalafmtCheckSettings(): Seq[Def.Setting[Task[CompileAnalysis]]] = Seq(
(Compile / compile) := ((Compile / compile) dependsOn (Compile / scalafmtCheckAll)).value,
)
// TODO: define fmtAll and fmtCheckAll tasks that run both scala and java fmts/checks
//////////////////////////
// END: Code Formatting //
//////////////////////////
/**
* Note: we cannot access sparkVersion.value here, since that can only be used within a task or
* setting macro.
*/
def runTaskOnlyOnSparkMaster[T](
task: sbt.TaskKey[T],
taskName: String,
projectName: String,
emptyValue: => T): Def.Initialize[Task[T]] = {
if (CrossSparkVersions.getSparkVersionSpec().isMaster) {
Def.task(task.value)
} else {
Def.task {
// scalastyle:off println
val masterVersion = SparkVersionSpec.MASTER.map(_.fullVersion).getOrElse("(no master version configured)")
println(s"Project $projectName: Skipping `$taskName` as Spark version " +
s"${CrossSparkVersions.getSparkVersion()} does not equal $masterVersion.")
// scalastyle:on println
emptyValue
}
}
}
lazy val connectCommon = (project in file("spark-connect/common"))
.disablePlugins(JavaFormatterPlugin, ScalafmtPlugin)
.settings(
name := "delta-connect-common",
commonSettings,
CrossSparkVersions.sparkDependentSettings(sparkVersion),
releaseSettings,
// Export as JAR instead of classes directory. This ensures protobuf-generated classes
// (e.g., io.delta.connect.proto.DeltaCommand) are available as a JAR file in fullClasspath,
// which can be symlinked and picked up by Spark Submit's jars/* wildcard in connectClient tests.
exportJars := true,
libraryDependencies ++= Seq(
"io.grpc" % "protoc-gen-grpc-java" % grpcVersion asProtocPlugin(),
"io.grpc" % "grpc-protobuf" % grpcVersion,
"io.grpc" % "grpc-stub" % grpcVersion,
"com.google.protobuf" % "protobuf-java" % protoVersion % "protobuf",
"javax.annotation" % "javax.annotation-api" % "1.3.2",
"org.apache.spark" %% "spark-connect-common" % sparkVersion.value % "provided",
),
PB.protocVersion := protoVersion,
Compile / PB.targets := Seq(
PB.gens.java -> (Compile / sourceManaged).value,
PB.gens.plugin("grpc-java") -> (Compile / sourceManaged).value
)
)
lazy val connectClient = (project in file("spark-connect/client"))
.disablePlugins(JavaFormatterPlugin, ScalafmtPlugin)
.dependsOn(connectCommon % "compile->compile;test->test;provided->provided")
.settings(
name := "delta-connect-client",
commonSettings,
releaseSettings,
CrossSparkVersions.sparkDependentSettings(sparkVersion),
libraryDependencies ++= Seq(
"com.google.protobuf" % "protobuf-java" % protoVersion % "protobuf",
"org.apache.spark" %% "spark-connect-client-jvm" % sparkVersion.value % "provided",
// Test deps
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"org.apache.spark" %% "spark-connect-client-jvm" % sparkVersion.value % "test" classifier "tests"
),
(Test / javaOptions) += {
// Create a (mini) Spark Distribution based on the server classpath.
val serverClassPath = (connectServer / Compile / fullClasspath).value
val distributionDir = crossTarget.value / "test-dist"
val jarsDir = distributionDir / "jars"
if (!distributionDir.exists()) {
IO.createDirectory(jarsDir)
// Create symlinks for all dependencies (filter to only JAR files)
serverClassPath.distinct.filter(_.data.isFile).foreach { entry =>
val jarFile = entry.data.toPath
val linkedJarFile = jarsDir / entry.data.getName
if (!java.nio.file.Files.exists(linkedJarFile.toPath)) {
Files.createSymbolicLink(linkedJarFile.toPath, jarFile)
}
}
// Create a symlink for the log4j properties
val confDir = distributionDir / "conf"
IO.createDirectory(confDir)
val log4jProps = (sparkV1 / Test / resourceDirectory).value / "log4j2.properties"
val linkedLog4jProps = confDir / "log4j2.properties"
if (!java.nio.file.Files.exists(linkedLog4jProps.toPath)) {
Files.createSymbolicLink(linkedLog4jProps.toPath, log4jProps.toPath)
}
}
// Return the location of the distribution directory.
"-Ddelta.spark.home=" + distributionDir
},
// Required for testing addFeatureSupport/dropFeatureSupport.
Test / envVars += ("DELTA_TESTING", "1")
)
lazy val connectServer = (project in file("spark-connect/server"))
.dependsOn(connectCommon % "compile->compile;test->test;provided->provided")
.dependsOn(spark % "compile->compile;test->test;provided->provided")
.disablePlugins(JavaFormatterPlugin, ScalafmtPlugin)
.settings(
name := "delta-connect-server",
commonSettings,
releaseSettings,
CrossSparkVersions.sparkDependentSettings(sparkVersion),
// Export as JAR instead of classes directory. Required for connectClient test setup so that
// classes like SimpleDeltaConnectService are available as a JAR file that can be symlinked
// and picked up by Spark Submit's jars/* wildcard. Also prevents classpath conflicts.
exportJars := true,
assembly / assemblyMergeStrategy := {
// Discard module-info.class files from Java 9+ modules and multi-release JARs
case "module-info.class" => MergeStrategy.discard
case PathList("META-INF", "versions", _, "module-info.class") => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
},
libraryDependencies ++= Seq(
"com.google.protobuf" % "protobuf-java" % protoVersion % "protobuf",
"org.apache.spark" %% "spark-hive" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-connect" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-hive" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-connect" % sparkVersion.value % "test" classifier "tests",
),
excludeDependencies ++= Seq(
// Exclude connect common because a properly shaded version of it is included in the
// spark-connect jar. Including it causes classpath problems.
ExclusionRule("org.apache.spark", "spark-connect-common_2.13"),
// Exclude connect shims because we have spark-core on the classpath. The shims are only
// needed for the client. Including it causes classpath problems.
ExclusionRule("org.apache.spark", "spark-connect-shims_2.13")
),
// Required for testing addFeatureSupport/dropFeatureSupport.
Test / envVars += ("DELTA_TESTING", "1"),
// Force Spark to bind to localhost to avoid network issues
Test / envVars += ("SPARK_LOCAL_IP", "127.0.0.1")
)
lazy val deltaSuiteGenerator = (project in file("spark/delta-suite-generator"))
.disablePlugins(ScalafmtPlugin)
.settings (
name := "delta-suite-generator",
commonSettings,
scalaStyleSettings,
skipReleaseSettings, // Internal module - not published to Maven
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-collection-compat" % "2.11.0",
"org.scalameta" %% "scalameta" % "4.13.5",
"org.scalameta" %% "scalafmt-core" % "3.9.6",
"commons-cli" % "commons-cli" % "1.9.0",
"commons-codec" % "commons-codec" % "1.17.2",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
),
Compile / mainClass := Some("io.delta.suitegenerator.ModularSuiteGenerator"),
Test / baseDirectory := (ThisBuild / baseDirectory).value,
)
// ============================================================
// Spark Module 1: sparkV1 (prod code only, no tests)
// ============================================================
lazy val sparkV1 = (project in file("spark"))
.dependsOn(storage)
.enablePlugins(Antlr4Plugin)
.disablePlugins(JavaFormatterPlugin, ScalafmtPlugin)
.settings (
name := "delta-spark-v1",
commonSettings,
scalaStyleSettings,
skipReleaseSettings, // Internal module - not published to Maven
CrossSparkVersions.sparkDependentSettings(sparkVersion),
// Export as JAR instead of classes directory. This prevents dependent projects
// (e.g., connectServer) from seeing multiple 'classes' directories with the same
// name in their classpath, which would cause FileAlreadyExistsException.
exportJars := true,
// Tests are compiled in the final 'spark' module to avoid circular dependencies
Test / sources := Seq.empty,
Test / resources := Seq.empty,
libraryDependencies ++= Seq(
// Adding test classifier seems to break transitive resolution of the core dependencies
"org.apache.spark" %% "spark-hive" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "provided",
// For DynamoDBCommitStore
"com.amazonaws" % "aws-java-sdk" % "1.12.262" % "provided",
// Test deps
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"org.scalatestplus" %% "scalacheck-1-15" % "3.2.9.0" % "test",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-hive" % sparkVersion.value % "test" classifier "tests",
"org.mockito" % "mockito-inline" % "4.11.0" % "test",
),
Compile / packageBin / mappings := (Compile / packageBin / mappings).value ++
listPythonFiles(baseDirectory.value.getParentFile / "python"),
Antlr4 / antlr4PackageName := Some("io.delta.sql.parser"),
Antlr4 / antlr4GenListener := true,
Antlr4 / antlr4GenVisitor := true,
// Introduced in https://github.com/delta-io/delta/commit/d2990624d34b6b86fa5cf230e00a89b095fde254
//
// Hack to avoid errors related to missing repo-root/target/scala-2.13/classes/
// In multi-module sbt projects, some dependencies may attempt to locate this directory
// at the repository root, causing build failures if it doesn't exist.
createTargetClassesDir := {
val dir = baseDirectory.value.getParentFile / "target" / "scala-2.13" / "classes"
Files.createDirectories(dir.toPath)
},
// Generate Python version.py file with hardcoded version.
// This file is committed to git and auto-updated during build.
generatePythonVersion := {
val versionValue = version.value
// Trim -SNAPSHOT suffix to get PyPI-compatible version (like setup.py does)
val trimmedVersion = versionValue.split("-SNAPSHOT")(0)
val versionFile = baseDirectory.value.getParentFile / "python" / "delta" / "version.py"
val content =
s"""#
|# Copyright (2026) The Delta Lake Project Authors.
|#
|# Licensed under the Apache License, Version 2.0 (the "License");
|# you may not use this file except in compliance with the License.
|# You may obtain a copy of the License at
|#
|# http://www.apache.org/licenses/LICENSE-2.0
|#
|# Unless required by applicable law or agreed to in writing, software
|# distributed under the License is distributed on an "AS IS" BASIS,
|# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|# See the License for the specific language governing permissions and
|# limitations under the License.
|#
|
|# This file is auto-generated by the build.sbt generatePythonVersion task.
|# Do not edit manually - edit version.sbt instead and run:
|# build/sbt sparkV1/generatePythonVersion
|
|__version__ = "$trimmedVersion"
|""".stripMargin
IO.write(versionFile, content)
versionFile
},
// Hook both createTargetClassesDir and generatePythonVersion into compile task
Compile / compile := ((Compile / compile) dependsOn createTargetClassesDir dependsOn generatePythonVersion).value,
// Generate the package object to provide the version information in runtime.
Compile / sourceGenerators += Def.task {
val file = (Compile / sourceManaged).value / "io" / "delta" / "package.scala"
IO.write(file,
s"""package io
|
|package object delta {
| val VERSION = "${version.value}"
|}
|""".stripMargin)
Seq(file)
},
)
// ============================================================
// Spark Module 2: sparkV1Filtered (v1 without DeltaLog for v2 dependency)
// This filtered version of sparkV1 is needed because sparkV2 (spark/v2) depends on some
// V1 classes for utilities and common functionality, but must NOT have access to DeltaLog,
// Snapshot, OptimisticTransaction, or actions that belongs to core V1 delta libraries.
// We should use Kernel as the Delta implementation.
// ============================================================
lazy val sparkV1Filtered = (project in file("spark-v1-filtered"))
.dependsOn(sparkV1)
.dependsOn(storage)
.settings(
name := "delta-spark-v1-filtered",
commonSettings,
skipReleaseSettings, // Internal module - not published to Maven
exportJars := true, // Export as JAR to avoid classpath conflicts
// No source code - just repackage sparkV1 without DeltaLog classes
Compile / sources := Seq.empty,
Test / sources := Seq.empty,
// Repackage sparkV1 jar but exclude DeltaLog and related classes
Compile / packageBin / mappings := {
val v1Mappings = (sparkV1 / Compile / packageBin / mappings).value
// Filter out DeltaLog, Snapshot, OptimisticTransaction, and actions.scala classes
v1Mappings.filterNot { case (file, path) =>
path.contains("org/apache/spark/sql/delta/DeltaLog") ||
path.contains("org/apache/spark/sql/delta/Snapshot") ||
path.contains("org/apache/spark/sql/delta/OptimisticTransaction") ||
path.contains("org/apache/spark/sql/delta/actions/actions")
}
},
)
// ============================================================
// Spark Module 3: sparkV2 (Kernel-based DSv2 connector, depends on v1-filtered)
// ============================================================
lazy val sparkV2 = (project in file("spark/v2"))
.dependsOn(sparkV1Filtered)
.dependsOn(kernelDefaults)
.dependsOn(kernelUnityCatalog % "compile->compile;test->test")
.dependsOn(goldenTables % "test")
.settings(
name := "delta-spark-v2",
commonSettings,
javafmtCheckSettings,
skipReleaseSettings, // Internal module - not published to Maven
CrossSparkVersions.sparkDependentSettings(sparkVersion),
exportJars := true, // Export as JAR to avoid classpath conflicts
Test / javaOptions ++= Seq("-ea"),
// make sure shaded kernel-api jar exists before compiling/testing
Compile / compile := (Compile / compile)
.dependsOn(kernelApi / Compile / packageBin).value,
Test / test := (Test / test)
.dependsOn(kernelApi / Compile / packageBin).value,
Test / unmanagedJars += (kernelApi / Test / packageBin).value,
Compile / unmanagedJars ++= Seq(
(kernelApi / Compile / packageBin).value
),
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "provided",
// Test dependencies
"org.junit.jupiter" % "junit-jupiter-api" % "5.11.4" % "test",
"org.junit.jupiter" % "junit-jupiter-engine" % "5.11.4" % "test",
"org.junit.jupiter" % "junit-jupiter-params" % "5.11.4" % "test",
"com.github.sbt.junit" % "jupiter-interface" % "0.17.0" % "test",
// Spark test classes for Scala/Java test utilities
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "test" classifier "tests",
// ScalaTest for test utilities (needed by Spark test classes)
"org.scalatest" %% "scalatest" % scalaTestVersion % "test"
),
Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-a"),
TestParallelization.settings
)
// ============================================================
// Spark Module 4: delta-spark (final published module - unified v1+v2)
// ============================================================
lazy val spark = (project in file("spark-unified"))
.dependsOn(sparkV1)
.dependsOn(sparkV2)
.dependsOn(storage)
.disablePlugins(JavaFormatterPlugin, ScalafmtPlugin)
.settings (
name := "delta-spark",
commonSettings,
scalaStyleSettings,
sparkMimaSettings,
releaseSettings, // Published to Maven as delta-spark.jar
// Set Test baseDirectory before sparkDependentSettings() so it uses the correct directory
Test / baseDirectory := (sparkV1 / baseDirectory).value,
// Test sources from spark/ directory (sparkV1's directory) AND spark-unified's own directory
// MUST be set BEFORE crossSparkSettings() to avoid overwriting version-specific directories
Test / unmanagedSourceDirectories := {
val sparkDir = (sparkV1 / baseDirectory).value
val unifiedDir = baseDirectory.value
Seq(
sparkDir / "src" / "test" / "scala",
sparkDir / "src" / "test" / "java",
unifiedDir / "src" / "test" / "scala",
unifiedDir / "src" / "test" / "java"
)
},
Test / unmanagedResourceDirectories := Seq(
(sparkV1 / baseDirectory).value / "src" / "test" / "resources",
baseDirectory.value / "src" / "test" / "resources"
),
CrossSparkVersions.sparkDependentSettings(sparkVersion),
// MiMa should use the generated JAR (not classDirectory) because we merge classes at package time
mimaCurrentClassfiles := (Compile / packageBin).value,
// Export as JAR to dependent projects (e.g., connectServer, connectClient).
// This prevents classpath conflicts from internal module 'classes' directories.
exportJars := true,
// Internal module artifact names to exclude from published POM
internalModuleNames := Set("delta-spark-v1", "delta-spark-v1-shaded", "delta-spark-v2"),
// Merge classes from internal modules (v1, v2) into final JAR
// kernel modules are kept as separate JARs and listed as dependencies in POM
Compile / packageBin / mappings ++= {
val log = streams.value.log
// Collect mappings from internal modules
val v1Mappings = (sparkV1 / Compile / packageBin / mappings).value
val v2Mappings = (sparkV2 / Compile / packageBin / mappings).value
// Include Python files (from spark/ directory)
val pythonMappings = listPythonFiles(baseDirectory.value.getParentFile / "python")
// Combine all mappings
val allMappings = v1Mappings ++ v2Mappings ++ pythonMappings
// Detect duplicate class files
val classFiles = allMappings.filter(_._2.endsWith(".class"))
val duplicates = classFiles.groupBy(_._2).filter(_._2.size > 1)
if (duplicates.nonEmpty) {
log.error(s"Found ${duplicates.size} duplicate class(es) in packageBin mappings:")
duplicates.foreach { case (className, entries) =>
log.error(s" - $className:")
entries.foreach { case (file, path) => log.error(s" from: $file") }
}
sys.error("Duplicate classes found. This indicates overlapping code between sparkV1, sparkV2, and storage modules.")
}
allMappings.distinct
},
// Exclude internal modules from published POM
pomPostProcess := { node =>
val internalModules = internalModuleNames.value
import scala.xml._
import scala.xml.transform._
new RuleTransformer(new RewriteRule {
override def transform(n: Node): Seq[Node] = n match {
case e: Elem if e.label == "dependency" =>
val artifactId = (e \ "artifactId").text
// Check if artifactId starts with any internal module name
// (e.g., "delta-spark-v1_4.1_2.13" starts with "delta-spark-v1")
val isInternal = internalModules.exists(module => artifactId.startsWith(module))
if (isInternal) Seq.empty else Seq(n)
case _ => Seq(n)
}
}).transform(node).head
},
pomIncludeRepository := { _ => false },
// Filter internal modules from project dependencies
// This works together with pomPostProcess to ensure internal modules
// (sparkV1, sparkV2, sparkV1Filtered) are not listed as dependencies in POM
projectDependencies := {
val internalModules = internalModuleNames.value
projectDependencies.value.filterNot(dep => internalModules.contains(dep.name))
},
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-hive" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "provided",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "provided",
"com.amazonaws" % "aws-java-sdk" % "1.12.262" % "provided",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"org.scalatestplus" %% "scalacheck-1-15" % "3.2.9.0" % "test",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-hive" % sparkVersion.value % "test" classifier "tests",
"org.mockito" % "mockito-inline" % "4.11.0" % "test",
),
Test / testOptions += Tests.Argument("-oDF"),
Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-a"),
// Don't execute in parallel since we can't have multiple Sparks in the same JVM
Test / parallelExecution := false,
javaOptions += "-Xmx1024m",
// Configurations to speed up tests and reduce memory footprint
Test / javaOptions ++= Seq(
"-Dspark.ui.enabled=false",
"-Dspark.ui.showConsoleProgress=false",
"-Dspark.databricks.delta.snapshotPartitions=2",
"-Dspark.sql.shuffle.partitions=5",
"-Ddelta.log.cacheSize=3",
"-Dspark.databricks.delta.delta.log.cacheSize=3",
"-Dspark.sql.sources.parallelPartitionDiscovery.parallelism=5",
"-Xmx1024m"
),
// Required for testing table features see https://github.com/delta-io/delta/issues/1602
Test / envVars += ("DELTA_TESTING", "1"),
TestParallelization.settings,
)
.configureUnidoc(
generatedJavaDoc = CrossSparkVersions.getSparkVersionSpec().generateDocs,
generateScalaDoc = CrossSparkVersions.getSparkVersionSpec().generateDocs,
// spark-connect has classes with the same name as spark-core, this causes compilation issues
// with unidoc since it concatenates the classpaths from all modules
// ==> thus we exclude such sources
// (mostly) relevant github issue: https://github.com/sbt/sbt-unidoc/issues/77
classPathToSkip = "spark-connect"
)
lazy val contribs = (project in file("contribs"))
.dependsOn(spark % "compile->compile;test->test;provided->provided")
.disablePlugins(JavaFormatterPlugin, ScalafmtPlugin)
.settings (
name := "delta-contribs",
commonSettings,
scalaStyleSettings,
releaseSettings,
// Set sparkVersion directly (not sparkDependentModuleName) so that
// runOnlyForReleasableSparkModules discovers this module, but without adding a Spark
// suffix to the artifact name. delta-contribs is only published as delta-contribs_2.13.
sparkVersion := CrossSparkVersions.getSparkVersion(),
Compile / packageBin / mappings := (Compile / packageBin / mappings).value ++
listPythonFiles(baseDirectory.value.getParentFile / "python"),
Test / testOptions += Tests.Argument("-oDF"),
Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-a"),
// Don't execute in parallel since we can't have multiple Sparks in the same JVM
Test / parallelExecution := false,
javaOptions += "-Xmx1024m",
// Configurations to speed up tests and reduce memory footprint
Test / javaOptions ++= Seq(
"-Dspark.ui.enabled=false",
"-Dspark.ui.showConsoleProgress=false",
"-Dspark.databricks.delta.snapshotPartitions=2",
"-Dspark.sql.shuffle.partitions=5",
"-Ddelta.log.cacheSize=3",
"-Dspark.databricks.delta.delta.log.cacheSize=3",
"-Dspark.sql.sources.parallelPartitionDiscovery.parallelism=5",
"-Xmx1024m"
),
// Introduced in https://github.com/delta-io/delta/commit/d2990624d34b6b86fa5cf230e00a89b095fde254
//
// Hack to avoid errors related to missing repo-root/target/scala-2.13/classes/
// In multi-module sbt projects, some dependencies may attempt to locate this directory
// at the repository root, causing build failures if it doesn't exist.
createTargetClassesDir := {
val dir = baseDirectory.value.getParentFile / "target" / "scala-2.13" / "classes"
Files.createDirectories(dir.toPath)
},
Compile / compile := ((Compile / compile) dependsOn createTargetClassesDir).value,
TestParallelization.settings
).configureUnidoc()
val unityCatalogVersion = "0.4.0"
val sparkUnityCatalogJacksonVersion = "2.15.4" // We are using Spark 4.0's Jackson version 2.15.x, to override Unity Catalog 0.3.0's version 2.18.x
lazy val sparkUnityCatalog = (project in file("spark/unitycatalog"))
.dependsOn(spark % "compile->compile;test->test;provided->provided")
.disablePlugins(ScalafmtPlugin)
.settings(
name := "delta-spark-unitycatalog",
commonSettings,
skipReleaseSettings,
javafmtCheckSettings(),
CrossSparkVersions.sparkDependentSettings(sparkVersion),
// This is a test-only module - no production sources
Compile / sources := Seq.empty,
// Ensure Java sources are picked up
Test / unmanagedSourceDirectories += baseDirectory.value / "src" / "test" / "java",
Test / javaOptions ++= Seq("-ea"),
// Don't execute in parallel since we can't have multiple Sparks in the same JVM
Test / parallelExecution := false,
// Force ALL Jackson dependencies to match Spark's Jackson version
// This overrides Jackson from Unity Catalog's transitive dependencies (e.g., Armeria)
dependencyOverrides ++= Seq(
"com.fasterxml.jackson.core" % "jackson-core" % sparkUnityCatalogJacksonVersion,
"com.fasterxml.jackson.core" % "jackson-annotations" % sparkUnityCatalogJacksonVersion,
"com.fasterxml.jackson.core" % "jackson-databind" % sparkUnityCatalogJacksonVersion,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % sparkUnityCatalogJacksonVersion,
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-yaml" % sparkUnityCatalogJacksonVersion,
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % sparkUnityCatalogJacksonVersion,
"com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % sparkUnityCatalogJacksonVersion
),
libraryDependencies ++= Seq(
"org.assertj" % "assertj-core" % "3.26.3" % "test",
// JUnit 5 test dependencies
"org.junit.jupiter" % "junit-jupiter-api" % "5.11.4" % "test",
"org.junit.jupiter" % "junit-jupiter-engine" % "5.11.4" % "test",
"org.junit.jupiter" % "junit-jupiter-params" % "5.11.4" % "test",
"com.github.sbt.junit" % "jupiter-interface" % "0.17.0" % "test",
// Lombok for generating boilerplate code
"org.projectlombok" % "lombok" % "1.18.34" % "test",
// Unity Catalog dependencies - exclude Jackson to use Spark's Jackson 2.15.x
"io.unitycatalog" %% "unitycatalog-spark" % unityCatalogVersion % "test" excludeAll(
ExclusionRule(organization = "com.fasterxml.jackson.core"),
ExclusionRule(organization = "com.fasterxml.jackson.module"),
ExclusionRule(organization = "com.fasterxml.jackson.datatype"),
ExclusionRule(organization = "com.fasterxml.jackson.dataformat")
),
"io.unitycatalog" % "unitycatalog-server" % unityCatalogVersion % "test" excludeAll(
ExclusionRule(organization = "com.fasterxml.jackson.core"),
ExclusionRule(organization = "com.fasterxml.jackson.module"),
ExclusionRule(organization = "com.fasterxml.jackson.datatype"),
ExclusionRule(organization = "com.fasterxml.jackson.dataformat")
),
// Spark test dependencies
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "test",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "test",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "test",
),
// Conditionally add hadoop-aws dependency only when UC_REMOTE=true
// Please see: https://github.com/delta-io/delta/issues/5624#issuecomment-3673383736
// Once we release the relocated unitycatalog-server, we can remove this.
libraryDependencies ++= {
if (sys.env.get("UC_REMOTE").contains("true")) {
Seq(
"org.apache.hadoop" % "hadoop-aws" % hadoopVersion % "test",
"org.apache.hadoop" % "hadoop-common" % hadoopVersion % "test",
"org.apache.hadoop" % "hadoop-client-api" % hadoopVersion % "test",
"org.apache.hadoop" % "hadoop-client-runtime" % hadoopVersion % "test"
)
} else {
Seq.empty
}
},
Test / testOptions += Tests.Argument("-oDF"),
Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-a")
)
lazy val sharing = (project in file("sharing"))
.dependsOn(spark % "compile->compile;test->test;provided->provided")
.disablePlugins(JavaFormatterPlugin, ScalafmtPlugin)
.settings(
name := "delta-sharing-spark",
commonSettings,
scalaStyleSettings,
releaseSettings,
CrossSparkVersions.sparkDependentSettings(sparkVersion),
Test / javaOptions ++= Seq("-ea"),
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",
"io.delta" %% "delta-sharing-client" % "1.3.9",
// Test deps
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"org.scalatestplus" %% "scalacheck-1-15" % "3.2.9.0" % "test",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test",
"org.apache.spark" %% "spark-catalyst" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-core" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "test" classifier "tests",
"org.apache.spark" %% "spark-hive" % sparkVersion.value % "test" classifier "tests",
),
TestParallelization.settings
).configureUnidoc()
lazy val kernelApi = (project in file("kernel/kernel-api"))
.enablePlugins(ScalafmtPlugin)
.settings(
name := "delta-kernel-api",
commonSettings,
scalaStyleSettings,
javaOnlyReleaseSettings,
javafmtCheckSettings,
scalafmtCheckSettings,
// Use unique classDirectory name to avoid conflicts in connectClient test setup
// This allows connectClient to create symlinks without FileAlreadyExistsException
Compile / classDirectory := target.value / "scala-2.13" / "kernel-api-classes",
Test / javaOptions ++= Seq("-ea"),
// Also publish a test-jar (classifier = "tests") so consumers (e.g. kernelDefault)
// can depend on test utilities via a published artifact instead of depending on raw class directories.
Test / publishArtifact := true,
Test / packageBin / artifactClassifier := Some("tests"),
libraryDependencies ++= Seq(
"org.roaringbitmap" % "RoaringBitmap" % "0.9.25",
"org.slf4j" % "slf4j-api" % "1.7.36",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.5",
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.5",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.5",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % "2.13.5",
// JSR-305 annotations for @Nullable
"com.google.code.findbugs" % "jsr305" % "3.0.2",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test",
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.25.3" % "test",
"org.apache.logging.log4j" % "log4j-core" % "2.25.3" % "test",
"org.assertj" % "assertj-core" % "3.26.3" % "test",
// JMH dependencies allow writing micro-benchmarks for testing performance of components.
// JMH has framework to define benchmarks and takes care of many common functionalities
// such as warm runs, cold runs, defining benchmark parameter variables etc.
"org.openjdk.jmh" % "jmh-core" % "1.37" % "test",
"org.openjdk.jmh" % "jmh-generator-annprocess" % "1.37" % "test"
),
// Shade jackson libraries so that connector developers don't have to worry
// about jackson version conflicts.
Compile / packageBin := assembly.value,
assembly / assemblyJarName := s"${name.value}-${version.value}.jar",
assembly / logLevel := Level.Info,
assembly / test := {},
assembly / assemblyExcludedJars := {
val cp = (assembly / fullClasspath).value
val allowedPrefixes = Set("META_INF", "io", "jackson")
cp.filter { f =>
!allowedPrefixes.exists(prefix => f.data.getName.startsWith(prefix))
}
},
assembly / assemblyShadeRules := Seq(
ShadeRule.rename("com.fasterxml.jackson.**" -> "io.delta.kernel.shaded.com.fasterxml.jackson.@1").inAll
),
assembly / assemblyMergeStrategy := {
// Discard `module-info.class` to fix the `different file contents found` error.
// TODO Upgrade SBT to 1.5 which will do this automatically
case "module-info.class" => MergeStrategy.discard
case PathList("META-INF", "services", xs @ _*) => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
},
// Generate the package object to provide the version information in runtime.
Compile / sourceGenerators += Def.task {
val file = (Compile / sourceManaged).value / "io" / "delta" / "kernel" / "Meta.java"
IO.write(file,
s"""/*
| * Copyright (2024) The Delta Lake Project Authors.
| *
| * Licensed under the Apache License, Version 2.0 (the "License");
| * you may not use this file except in compliance with the License.
| * You may obtain a copy of the License at
| *
| * http://www.apache.org/licenses/LICENSE-2.0
| *
| * Unless required by applicable law or agreed to in writing, software
| * distributed under the License is distributed on an "AS IS" BASIS,
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| * See the License for the specific language governing permissions and
| * limitations under the License.
| */
|package io.delta.kernel;
|
|public final class Meta {
| public static final String KERNEL_VERSION = "${version.value}";
|}
|""".stripMargin)
Seq(file)
},
MultiShardMultiJVMTestParallelization.settings,
javaCheckstyleSettings("dev/kernel-checkstyle.xml"),
// Unidoc settings
unidocSourceFilePatterns := Seq(SourceFilePattern("io/delta/kernel/")),
).configureUnidoc(docTitle = "Delta Kernel")
lazy val kernelDefaults = (project in file("kernel/kernel-defaults"))
.enablePlugins(ScalafmtPlugin)
.dependsOn(storage)
.dependsOn(storage % "test->test") // Required for InMemoryCommitCoordinator for tests
.dependsOn(goldenTables % "test")
.settings(
name := "delta-kernel-defaults",
commonSettings,
scalaStyleSettings,
javaOnlyReleaseSettings,
javafmtCheckSettings,
scalafmtCheckSettings,
// Use unique classDirectory name to avoid conflicts in connectClient test setup
// This allows connectClient to create symlinks without FileAlreadyExistsException
Compile / classDirectory := target.value / "scala-2.13" / "kernel-defaults-classes",
Test / javaOptions ++= Seq("-ea"),
// This allows generating tables with unsupported test table features in delta-spark
Test / envVars += ("DELTA_TESTING", "1"),
// Put the shaded kernel-api JAR on the classpath (compile & test)
Compile / unmanagedJars += (kernelApi / Compile / packageBin).value,
Test / unmanagedJars += (kernelApi / Compile / packageBin).value,
// Make sure the shaded JAR is produced before we compile/run tests
Compile / compile := (Compile / compile).dependsOn(kernelApi / Compile / packageBin).value,
Test / test := (Test / test).dependsOn(kernelApi / Compile / packageBin).value,
Test / unmanagedJars += (kernelApi / Test / packageBin).value,
libraryDependencies ++= Seq(
"org.assertj" % "assertj-core" % "3.26.3" % Test,
"org.apache.hadoop" % "hadoop-client-runtime" % hadoopVersion,
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.5",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % "2.13.5",
"org.apache.parquet" % "parquet-hadoop" % "1.12.3",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"junit" % "junit" % "4.13.2" % "test",
"commons-io" % "commons-io" % "2.8.0" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test",
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.25.3" % "test",
"org.apache.logging.log4j" % "log4j-core" % "2.25.3" % "test",
// JMH dependencies allow writing micro-benchmarks for testing performance of components.
// JMH has framework to define benchmarks and takes care of many common functionalities
// such as warm runs, cold runs, defining benchmark parameter variables etc.
"org.openjdk.jmh" % "jmh-core" % "1.37" % "test",
"org.openjdk.jmh" % "jmh-generator-annprocess" % "1.37" % "test",
// The delta-spark and spark dependencies are mainly used for catalog-based table creation.
// Instead of using the latest snapshot, those are fine to use the released 4.0.0.
"io.delta" %% "delta-spark" % "4.0.0" % "test",
"org.apache.spark" %% "spark-hive" % sparkVersionForKernelTest % "test" classifier "tests",
"org.apache.spark" %% "spark-sql" % sparkVersionForKernelTest % "test" classifier "tests",
"org.apache.spark" %% "spark-core" % sparkVersionForKernelTest % "test" classifier "tests",
"org.apache.spark" %% "spark-catalyst" % sparkVersionForKernelTest % "test" classifier "tests",
),
MultiShardMultiJVMTestParallelization.settings,
javaCheckstyleSettings("dev/kernel-checkstyle.xml"),
// Unidoc settings
unidocSourceFilePatterns += SourceFilePattern("io/delta/kernel/"),
).configureUnidoc(docTitle = "Delta Kernel Defaults")
lazy val kernelBenchmarks = (project in file("kernel/kernel-benchmarks"))
.enablePlugins(ScalafmtPlugin)
.dependsOn(kernelDefaults % "test->test")
.dependsOn(kernelApi % "test->test")
.dependsOn(storage % "test->test")
.dependsOn(kernelUnityCatalog % "test->test")
.settings(
name := "delta-kernel-benchmarks",
commonSettings,
skipReleaseSettings,
exportJars := false,
javafmtCheckSettings,
scalafmtCheckSettings,
libraryDependencies ++= Seq(
"org.openjdk.jmh" % "jmh-core" % "1.37" % "test",