This is an automated email from the ASF dual-hosted git repository.
chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new aa8035b4c82 KAFKA-20730 Remove scalafmt from streams-scala Spotless
config (#22668)
aa8035b4c82 is described below
commit aa8035b4c823fe7795251523c659dedec6627c25
Author: JiayƔo Sun <[email protected]>
AuthorDate: Mon Jun 29 23:51:32 2026 +1200
KAFKA-20730 Remove scalafmt from streams-scala Spotless config (#22668)
The `:streams:streams-scala:spotlessScalaCheck` task currently fails
with scalafmt-related `NoClassDefFoundError` errors. This is caused
by diffplug/spotless#2850.
Since the `streams-scala` module is already deprecated, this patch
removes the scalafmt Spotless step for that module. This should not
affect active development, and the existing license header check is
kept in place.
Reviewers: Chia-Ping Tsai <[email protected]>
---
build.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index 4d44740d9e6..5f7a0c4ff70 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3032,7 +3032,7 @@ project(':streams:streams-scala') {
spotless {
scala {
target '**/*.scala'
-
scalafmt("$versions.scalafmt").configFile('../../checkstyle/.scalafmt.conf').scalaMajorVersion(versions.baseScala)
+ // Skip scalafmt while Spotless is affected by
https://github.com/diffplug/spotless/issues/2850.
licenseHeaderFile '../../checkstyle/java.header', 'package'
}
}