@@ -28,8 +28,7 @@ buildscript {
2828 dependencies {
2929 classpath ' com.gradleup.shadow:shadow-gradle-plugin:8.3.10'
3030 classpath ' com.palantir.baseline:gradle-baseline-java:6.90.0'
31- classpath ' com.diffplug.spotless:spotless-plugin-gradle:8.3.0'
32- classpath ' gradle.plugin.org.inferred:gradle-processors:3.7.0'
31+ classpath ' com.diffplug.spotless:spotless-plugin-gradle:8.2.1'
3332 classpath ' me.champeau.jmh:jmh-gradle-plugin:0.7.3'
3433 classpath ' gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.6'
3534 classpath " com.github.alisiikh:gradle-scalastyle-plugin:3.5.0"
@@ -622,9 +621,23 @@ project(':iceberg-delta-lake') {
622621 test {
623622 useJUnitPlatform()
624623 }
625- configurations {
626- integrationImplementation. extendsFrom testImplementation
627- integrationRuntime. extendsFrom testRuntimeOnly
624+
625+ // The newest version of delta-core uses Spark 3.5.*. The integration test should only be built
626+ // if iceberg-spark-3.5 is available
627+ if (sparkVersions. contains(" 3.5" )) {
628+ sourceSets {
629+ integration {
630+ java. srcDir " $projectDir /src/integration/java"
631+ resources. srcDir " $projectDir /src/integration/resources"
632+ compileClasspath + = main. output + test. output
633+ runtimeClasspath + = main. output + test. output
634+ }
635+ }
636+
637+ configurations {
638+ integrationImplementation. extendsFrom testImplementation
639+ integrationRuntime. extendsFrom testRuntimeOnly
640+ }
628641 }
629642
630643 dependencies {
@@ -672,18 +685,7 @@ project(':iceberg-delta-lake') {
672685 }
673686 }
674687
675- // The newest version of delta-core uses Spark 3.5.*. The integration test should only be built
676- // if iceberg-spark-3.5 is available
677688 if (sparkVersions. contains(" 3.5" )) {
678- sourceSets {
679- integration {
680- java. srcDir " $projectDir /src/integration/java"
681- resources. srcDir " $projectDir /src/integration/resources"
682- compileClasspath + = main. output + test. output
683- runtimeClasspath + = main. output + test. output
684- }
685- }
686-
687689 task integrationTest(type : Test ) {
688690 useJUnitPlatform()
689691 testClassesDirs = sourceSets. integration. output. classesDirs
@@ -1044,8 +1046,9 @@ project(':iceberg-open-api') {
10441046
10451047 dependencies {
10461048 testImplementation project(' :iceberg-api' )
1049+ testImplementation project(path : ' :iceberg-api' , configuration : ' testArtifacts' )
10471050 testImplementation project(' :iceberg-core' )
1048- testImplementation project(' :iceberg-core' ) . sourceSets . test . runtimeClasspath
1051+ testImplementation project(path : ' :iceberg-core' , configuration : ' testArtifacts ' )
10491052 testImplementation(testFixtures(project(' :iceberg-open-api' )))
10501053
10511054 testImplementation libs. junit. jupiter
0 commit comments