Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-14680: spotlessCheck task is disabled #13306

Closed
wants to merge 1 commit into from

Conversation

dejan2609
Copy link
Contributor

Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and it works well

build.gradle Outdated Show resolved Hide resolved
@ijuma
Copy link
Contributor

ijuma commented Feb 26, 2023

Not sure about this - seems like we're better off removing spotless altogether. Let me play with it a bit and see if something better can be done.

note: this solves build regression (after Gradle version was bumped from 7.6 to 8.0.1)
@dejan2609
Copy link
Contributor Author

Got it @ijuma.

I removed redundant line (as proposed by @chia7712) but I do agree that solution is maybe an overkill, so to say.

My idea was to prevent tasks (such as build and check) that depend on spotless plugin related tasks to fail:

./gradlew build tiTree

> Task :tiTree
:build                                                         (org.gradle.api.DefaultTask)
+--- :assemble                                                 (org.gradle.api.DefaultTask)
|    `--- :jar                                                 (org.gradle.api.tasks.bundling.Jar)
|         +--- :classes                                        (org.gradle.api.DefaultTask)
|         |    +--- :compileJava                               (org.gradle.api.tasks.compile.JavaCompile)
|         |    `--- :processResources                          (org.gradle.language.jvm.tasks.ProcessResources)
|         `--- :compileJava                                    (org.gradle.api.tasks.compile.JavaCompile)
`--- :check                                                    (org.gradle.api.DefaultTask)
     +--- :rat                                                 (org.nosphere.apache.rat.RatTask)
     +--- :spotlessCheck                                       (org.gradle.api.DefaultTask)
     |    `--- :spotlessScalaCheck                             (com.diffplug.gradle.spotless.SpotlessCheck)
     |         `--- :spotlessScala                             (com.diffplug.gradle.spotless.SpotlessTaskImpl)
     |              `--- :spotlessInternalRegisterDependencies (com.diffplug.gradle.spotless.RegisterDependenciesTask)
     `--- :test                                                (org.gradle.api.tasks.testing.Test)
          +--- :classes                                        (org.gradle.api.DefaultTask)
          |    +--- :compileJava                               (org.gradle.api.tasks.compile.JavaCompile)
          |    `--- :processResources                          (org.gradle.language.jvm.tasks.ProcessResources)
          +--- :compileJava                                    (org.gradle.api.tasks.compile.JavaCompile)
          +--- :compileTestJava                                (org.gradle.api.tasks.compile.JavaCompile)
          |    +--- :classes                                   (org.gradle.api.DefaultTask)
          |    |    +--- :compileJava                          (org.gradle.api.tasks.compile.JavaCompile)
          |    |    `--- :processResources                     (org.gradle.language.jvm.tasks.ProcessResources)
          |    `--- :compileJava                               (org.gradle.api.tasks.compile.JavaCompile)
          `--- :testClasses                                    (org.gradle.api.DefaultTask)
               +--- :compileTestJava                           (org.gradle.api.tasks.compile.JavaCompile)
               |    +--- :classes                              (org.gradle.api.DefaultTask)
               |    |    +--- :compileJava                     (org.gradle.api.tasks.compile.JavaCompile)
               |    |    `--- :processResources                (org.gradle.language.jvm.tasks.ProcessResources)
               |    `--- :compileJava                          (org.gradle.api.tasks.compile.JavaCompile)
               `--- :processTestResources                      (org.gradle.language.jvm.tasks.ProcessResources)

@ijuma
Copy link
Contributor

ijuma commented Feb 26, 2023

@dejan2609 @chia7712 Check this alternative approach and let me know what you think:

https://github.com/apache/kafka/pull/13311/files

@dejan2609
Copy link
Contributor Author

Closing in favor of #13311

@dejan2609 dejan2609 closed this Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants