diff --git a/build.sbt b/build.sbt index 7f9c660adc4..cc0a7c968eb 100644 --- a/build.sbt +++ b/build.sbt @@ -1224,9 +1224,9 @@ lazy val flink = (project in file("connectors/flink")) IO.write(file, s"""package io.delta.flink.internal; | - |final public class Meta { - | public static final String FLINK_VERSION = "${flinkVersion}"; - | public static final String CONNECTOR_VERSION = "${version.value}"; + |public final class Meta { + | public static final String FLINK_VERSION = "${flinkVersion}"; + | public static final String CONNECTOR_VERSION = "${version.value}"; |} |""".stripMargin) Seq(file) @@ -1320,9 +1320,9 @@ def javaCheckstyleSettings(checkstyleFile: String): Def.SettingsDefinition = { // and during tests (e.g. build/sbt test) Seq( checkstyleConfigLocation := CheckstyleConfigLocation.File(checkstyleFile), - checkstyleSeverityLevel := Some(CheckstyleSeverityLevel.Error), - (Compile / checkstyle) := (Compile / checkstyle).triggeredBy(Compile / compile).value, - (Test / checkstyle) := (Test / checkstyle).triggeredBy(Test / compile).value + checkstyleSeverityLevel := CheckstyleSeverityLevel.Error, + (Compile / compile) := ((Compile / compile) dependsOn (Compile / checkstyle)).value, + (Test / test) := ((Test / test) dependsOn (Test / checkstyle)).value ) } diff --git a/connectors/flink/src/main/scala/io/delta/flink/internal/KernelSnapshotWrapper.java b/connectors/flink/src/main/scala/io/delta/flink/internal/KernelSnapshotWrapper.java index 43ff2096670..1b85100e9cd 100644 --- a/connectors/flink/src/main/scala/io/delta/flink/internal/KernelSnapshotWrapper.java +++ b/connectors/flink/src/main/scala/io/delta/flink/internal/KernelSnapshotWrapper.java @@ -23,11 +23,10 @@ import java.util.List; import java.util.Optional; +import io.delta.kernel.data.ColumnVector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import io.delta.kernel.data.ColumnVector; - import io.delta.standalone.DeltaScan; import io.delta.standalone.actions.AddFile; import io.delta.standalone.actions.Metadata; diff --git a/project/plugins.sbt b/project/plugins.sbt index 674539b6a59..79e0da3f54d 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -45,7 +45,7 @@ libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionSch addSbtPlugin("net.aichler" % "sbt-jupiter-interface" % "0.9.1") -addSbtPlugin("com.etsy" % "sbt-checkstyle-plugin" % "3.1.1") +addSbtPlugin("software.purpledragon" % "sbt-checkstyle-plugin" % "4.0.1") // By default, sbt-checkstyle-plugin uses checkstyle version 6.15, but we should set it to use the // same version as Spark -dependencyOverrides += "com.puppycrawl.tools" % "checkstyle" % "8.43" +dependencyOverrides += "com.puppycrawl.tools" % "checkstyle" % "9.3"