Skip to content

Commit 91902a8

Browse files
authored
Build: Remove JDK17 target configuration for Spark 4.1 (apache#15256)
1 parent 31fc168 commit 91902a8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

spark/v4.1/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ project(":iceberg-spark:iceberg-spark-${sparkMajorVersion}_${scalaVersion}") {
5151
apply plugin: 'scala'
5252
apply plugin: 'com.github.alisiikh.scalastyle'
5353

54-
// Set target to JDK17 for Spark 4.1 to fix following error
55-
// "spark/v4.1/spark/src/main/scala/org/apache/spark/sql/stats/ThetaSketchAgg.scala:52:12: Class java.lang.Record not found"
56-
tasks.withType(ScalaCompile.class) {
57-
sourceCompatibility = "17"
58-
targetCompatibility = "17"
59-
scalaCompileOptions.additionalParameters.add("-release:17")
60-
}
61-
6254
sourceSets {
6355
main {
6456
scala.srcDirs = ['src/main/scala', 'src/main/java']

0 commit comments

Comments
 (0)