Skip to content

Commit

Permalink
Add 4.0.0-preview{1,2}
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Sep 29, 2024
1 parent 72c2b4a commit e6890c4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
24 changes: 19 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ lazy val core = (project in file("core"))
publishSettings,
coreSources,
coreTestSources,
evictionErrorLevel := Level.Info,
addCompilerPlugin(scalafixSemanticdb),
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion.value,
Expand All @@ -44,7 +45,13 @@ lazy val core = (project in file("core"))
"org.apache.spark" %% "spark-mllib" % sparkVersion.value
) ++ commonDependencies ++
{
if (sparkVersion.value > "3.0.0") {
if (sparkVersion.value > "4.0.0") {
Seq(
"io.netty" % "netty-all" % "4.1.96.Final",
"io.netty" % "netty-tcnative-classes" % "2.0.66.Final",
"com.github.luben" % "zstd-jni" % "1.5.5-4"
)
} else if (sparkVersion.value > "3.0.0") {
Seq(
"io.netty" % "netty-all" % "4.1.77.Final",
"io.netty" % "netty-tcnative-classes" % "2.0.52.Final"
Expand Down Expand Up @@ -100,8 +107,9 @@ lazy val kafka_0_8 = {
val commonSettings = Seq(
organization := "com.holdenkarau",
publishMavenStyle := true,
libraryDependencySchemes += "com.github.luben" %% "zstd-jni" % "early-semver", // "early-semver",
sparkVersion := System.getProperty("sparkVersion", "2.4.8"),
sparkTestingVersion := "1.6.0-SNAPSHOT",
sparkTestingVersion := "1.6.0",
version := sparkVersion.value + "_" + sparkTestingVersion.value,
scalaVersion := {
if (sparkVersion.value >= "4.0.0") {
Expand All @@ -111,7 +119,9 @@ val commonSettings = Seq(
}
},
crossScalaVersions := {
if (sparkVersion.value >= "3.5.0") {
if (sparkVersion.value >= "4.0.0") {
Seq("2.13.13")
} else if (sparkVersion.value >= "3.5.0") {
Seq("2.12.15", "2.13.13")
} else if (sparkVersion.value >= "3.2.0") {
Seq("2.12.15", "2.13.10")
Expand All @@ -123,9 +133,13 @@ val commonSettings = Seq(
},
scalacOptions ++= Seq("-deprecation", "-unchecked", "-Yrangepos"),
javacOptions ++= {
Seq("-source", "1.8", "-target", "1.8")
if (sparkVersion.value >= "4.0.0") {
Seq("-source", "1.17", "-target", "1.17")
} else {
Seq("-source", "1.8", "-target", "1.8")
}
},
javaOptions ++= Seq("-Xms5G", "-Xmx5G"),
javaOptions ++= Seq("-Xms8G", "-Xmx8G"),

coverageHighlighting := true,

Expand Down
2 changes: 1 addition & 1 deletion mini-cross-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -ex
for spark_version in 2.4.8 3.0.0 3.0.1 3.0.2 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1
for spark_version in 2.4.8 3.0.0 3.0.1 3.0.2 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 3.5.3 4.0.0-preview1 4.0.0-preview2
do
build_dir="/tmp/spark-testing-base-$spark_version"
mkdir -p "${build_dir}"
Expand Down

0 comments on commit e6890c4

Please sign in to comment.