1717 * under the License.
1818 */
1919
20- String sparkMajorVersion = ' 4.1 '
20+ String sparkMajorVersion = ' 4.2 '
2121String scalaVersion = ' 2.13'
2222
2323JavaVersion javaVersion = JavaVersion . current()
2424Boolean javaVersionSupported = javaVersion == JavaVersion . VERSION_17 || javaVersion == JavaVersion . VERSION_21
2525if (! javaVersionSupported) {
26- logger. warn(" Skip Spark 4.1 build which requires JDK 17 or 21 but was executed with JDK " + javaVersion)
26+ logger. warn(" Skip Spark 4.2 build which requires JDK 17 or 21 but was executed with JDK " + javaVersion)
2727}
2828
2929def sparkProjects = [
@@ -74,17 +74,17 @@ project(":iceberg-spark:iceberg-spark-${sparkMajorVersion}_${scalaVersion}") {
7474
7575 compileOnly libs. errorprone. annotations
7676 compileOnly libs. avro. avro
77- compileOnly(" org.apache.spark:spark-hive_${ scalaVersion} :${ libs.versions.spark41 .get()} " ) {
77+ compileOnly(" org.apache.spark:spark-hive_${ scalaVersion} :${ libs.versions.spark42 .get()} " ) {
7878 exclude group : ' org.apache.avro' , module : ' avro'
7979 exclude group : ' org.apache.arrow'
8080 exclude group : ' org.apache.parquet'
8181 // to make sure netty libs only come from project(':iceberg-arrow')
8282 exclude group : ' io.netty' , module : ' netty-buffer'
8383 exclude group : ' io.netty' , module : ' netty-common'
84- exclude group : ' org.roaringbitmap '
84+ exclude group : ' com.github.RoaringBitmap.RoaringBitmap '
8585 }
8686
87- // TODO: datafusion-comet Spark 4.1 support
87+ // TODO: datafusion-comet Spark 4.2 support
8888 compileOnly " org.apache.datafusion:comet-spark-spark4.0_2.13:${ libs.versions.comet.get()} "
8989
9090 implementation libs. parquet. column
@@ -166,14 +166,14 @@ project(":iceberg-spark:iceberg-spark-extensions-${sparkMajorVersion}_${scalaVer
166166 compileOnly project(' :iceberg-core' )
167167 compileOnly project(' :iceberg-common' )
168168 compileOnly project(" :iceberg-spark:iceberg-spark-${ sparkMajorVersion} _${ scalaVersion} " )
169- compileOnly(" org.apache.spark:spark-hive_${ scalaVersion} :${ libs.versions.spark41 .get()} " ) {
169+ compileOnly(" org.apache.spark:spark-hive_${ scalaVersion} :${ libs.versions.spark42 .get()} " ) {
170170 exclude group : ' org.apache.avro' , module : ' avro'
171171 exclude group : ' org.apache.arrow'
172172 exclude group : ' org.apache.parquet'
173173 // to make sure netty libs only come from project(':iceberg-arrow')
174174 exclude group : ' io.netty' , module : ' netty-buffer'
175175 exclude group : ' io.netty' , module : ' netty-common'
176- exclude group : ' org.roaringbitmap '
176+ exclude group : ' com.github.RoaringBitmap.RoaringBitmap '
177177 }
178178 compileOnly libs. errorprone. annotations
179179
@@ -195,7 +195,7 @@ project(":iceberg-spark:iceberg-spark-extensions-${sparkMajorVersion}_${scalaVer
195195 testImplementation libs. avro. avro
196196 testImplementation libs. parquet. hadoop
197197 testImplementation libs. awaitility
198- // TODO: datafusion-comet Spark 4.1 support
198+ // TODO: datafusion-comet Spark 4.2 support
199199 testImplementation " org.apache.datafusion:comet-spark-spark4.0_2.13:${ libs.versions.comet.get()} "
200200 testImplementation(testFixtures(project(' :iceberg-parquet' )))
201201
@@ -269,7 +269,7 @@ project(":iceberg-spark:iceberg-spark-runtime-${sparkMajorVersion}_${scalaVersio
269269 }
270270
271271 integrationImplementation " org.scala-lang.modules:scala-collection-compat_${ scalaVersion} :${ libs.versions.scala.collection.compat.get()} "
272- integrationImplementation(" org.apache.spark:spark-hive_${ scalaVersion} :${ libs.versions.spark41 .get()} " ) {
272+ integrationImplementation(" org.apache.spark:spark-hive_${ scalaVersion} :${ libs.versions.spark42 .get()} " ) {
273273 exclude group : ' org.roaringbitmap'
274274 }
275275 integrationImplementation libs. junit. jupiter
0 commit comments