Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5887

Replace findBugs with spotBugs for Java 9+ support

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • build
    • None

    Description

      findBugs doesn't support Java 9 and it seems to be abandonware at this point:

      https://github.com/findbugsproject/findbugs/issues/105
      https://github.com/gradle/gradle/issues/720

      It has been forked, but the fork requires Java 8:

      https://github.com/spotbugs/spotbugs
      https://github.com/spotbugs/spotbugs/blob/master/docs/migration.rst#findbugs-gradle-plugin

      We should migrate once we move to Java 8 if spotbugs is still being actively developed and findBugs continues to be dead.

      Additional tasks:

      1. Remove the code that disables the Gradle plugin for findBugs (or spotbugs) when building with Java 9.

      2. Enable the findBugs plugin in Jenkins for the relevant builds:
      https://builds.apache.org/job/kafka-trunk-jdk10/
      https://builds.apache.org/job/kafka-pr-jdk10-scala2.12/

      Attachments

        Issue Links

          Activity

            People

              ijuma Ismael Juma
              ijuma Ismael Juma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: