You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Miguel Silvestre <ms...@gmail.com> on 2019/11/14 09:58:25 UTC

Can not compile kafka

Hi,

I'm on macOS Mojave 10.14.6 but when I run gradle (I'm using version 6.0) I
get the following error:

What can I do?

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/miguel.silvestre/Projects/others/kafka/build.gradle'
line: 480

* What went wrong:
A problem occurred evaluating root project 'kafka'.
> Could not create task ':clients:spotbugsMain'.
   > Could not create task of type 'SpotBugsTask'.
      > Could not create an instance of type
com.github.spotbugs.internal.SpotBugsReportsImpl.
         >
org.gradle.api.reporting.internal.TaskReportContainer.<init>(Ljava/lang/Class;Lorg/gradle/api/Task;)V

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible
with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/6.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2s
--
Miguel Silvestre

Re: Can not compile kafka

Posted by Ismael Juma <is...@juma.me.uk>.
We have recently merged a PR that should fix the issue:

https://github.com/apache/kafka/commit/09f700ab3e2a8441109e26851cc861be7856f5e4

`gradlew` now auto downloads the correct version so this kind of issue
should no longer happen in the future.

Ismael

On Sun, Nov 24, 2019 at 5:40 AM Kun Song <so...@gmail.com> wrote:

> There's a PR[1] which will enable gradle 6.0.1 to work with Kafka, hope it
> will be merged soon.
>
>
> 1. https://github.com/apache/kafka/pull/7677
>
> On Thu, Nov 14, 2019 at 7:14 PM Miguel Silvestre <ms...@gmail.com>
> wrote:
>
> > Hi,
> >
> > Thank you! That worked. I used gradle 5.6.4 and it worked, just out of
> the
> > box.
> > Let's see if gradlew installAll will work :)
> > --
> > Miguel Silvestre
> >
> >
> > On Thu, Nov 14, 2019 at 10:41 AM Bruno Cadonna <br...@confluent.io>
> wrote:
> >
> > > Hi Miguel,
> > >
> > > I build Kafka with Gradle 5.2.1 and at the end of the build I get the
> > > following message:
> > >
> > > "Deprecated Gradle features were used in this build, making it
> > > incompatible with Gradle 6.0."
> > >
> > > So, maybe you ran in one of those incompatibilities.
> > >
> > > Try to compile with a 5.x version of Gradle.
> > >
> > > Best,
> > > Bruno
> > >
> > > On Thu, Nov 14, 2019 at 10:59 AM Miguel Silvestre <
> msilvestre@gmail.com>
> > > wrote:
> > > >
> > > > Hi,
> > > >
> > > > I'm on macOS Mojave 10.14.6 but when I run gradle (I'm using version
> > > 6.0) I
> > > > get the following error:
> > > >
> > > > What can I do?
> > > >
> > > > FAILURE: Build failed with an exception.
> > > >
> > > > * Where:
> > > > Build file
> '/Users/miguel.silvestre/Projects/others/kafka/build.gradle'
> > > > line: 480
> > > >
> > > > * What went wrong:
> > > > A problem occurred evaluating root project 'kafka'.
> > > > > Could not create task ':clients:spotbugsMain'.
> > > >    > Could not create task of type 'SpotBugsTask'.
> > > >       > Could not create an instance of type
> > > > com.github.spotbugs.internal.SpotBugsReportsImpl.
> > > >          >
> > > >
> > >
> >
> org.gradle.api.reporting.internal.TaskReportContainer.<init>(Ljava/lang/Class;Lorg/gradle/api/Task;)V
> > > >
> > > > * Try:
> > > > Run with --stacktrace option to get the stack trace. Run with --info
> or
> > > > --debug option to get more log output. Run with --scan to get full
> > > insights.
> > > >
> > > > * Get more help at https://help.gradle.org
> > > >
> > > > Deprecated Gradle features were used in this build, making it
> > > incompatible
> > > > with Gradle 7.0.
> > > > Use '--warning-mode all' to show the individual deprecation warnings.
> > > > See
> > > >
> > >
> >
> https://docs.gradle.org/6.0/userguide/command_line_interface.html#sec:command_line_warnings
> > > >
> > > > BUILD FAILED in 2s
> > > > --
> > > > Miguel Silvestre
> > >
> >
>

Re: Can not compile kafka

Posted by Kun Song <so...@gmail.com>.
There's a PR[1] which will enable gradle 6.0.1 to work with Kafka, hope it
will be merged soon.


1. https://github.com/apache/kafka/pull/7677

On Thu, Nov 14, 2019 at 7:14 PM Miguel Silvestre <ms...@gmail.com>
wrote:

> Hi,
>
> Thank you! That worked. I used gradle 5.6.4 and it worked, just out of the
> box.
> Let's see if gradlew installAll will work :)
> --
> Miguel Silvestre
>
>
> On Thu, Nov 14, 2019 at 10:41 AM Bruno Cadonna <br...@confluent.io> wrote:
>
> > Hi Miguel,
> >
> > I build Kafka with Gradle 5.2.1 and at the end of the build I get the
> > following message:
> >
> > "Deprecated Gradle features were used in this build, making it
> > incompatible with Gradle 6.0."
> >
> > So, maybe you ran in one of those incompatibilities.
> >
> > Try to compile with a 5.x version of Gradle.
> >
> > Best,
> > Bruno
> >
> > On Thu, Nov 14, 2019 at 10:59 AM Miguel Silvestre <ms...@gmail.com>
> > wrote:
> > >
> > > Hi,
> > >
> > > I'm on macOS Mojave 10.14.6 but when I run gradle (I'm using version
> > 6.0) I
> > > get the following error:
> > >
> > > What can I do?
> > >
> > > FAILURE: Build failed with an exception.
> > >
> > > * Where:
> > > Build file '/Users/miguel.silvestre/Projects/others/kafka/build.gradle'
> > > line: 480
> > >
> > > * What went wrong:
> > > A problem occurred evaluating root project 'kafka'.
> > > > Could not create task ':clients:spotbugsMain'.
> > >    > Could not create task of type 'SpotBugsTask'.
> > >       > Could not create an instance of type
> > > com.github.spotbugs.internal.SpotBugsReportsImpl.
> > >          >
> > >
> >
> org.gradle.api.reporting.internal.TaskReportContainer.<init>(Ljava/lang/Class;Lorg/gradle/api/Task;)V
> > >
> > > * Try:
> > > Run with --stacktrace option to get the stack trace. Run with --info or
> > > --debug option to get more log output. Run with --scan to get full
> > insights.
> > >
> > > * Get more help at https://help.gradle.org
> > >
> > > Deprecated Gradle features were used in this build, making it
> > incompatible
> > > with Gradle 7.0.
> > > Use '--warning-mode all' to show the individual deprecation warnings.
> > > See
> > >
> >
> https://docs.gradle.org/6.0/userguide/command_line_interface.html#sec:command_line_warnings
> > >
> > > BUILD FAILED in 2s
> > > --
> > > Miguel Silvestre
> >
>

Re: Can not compile kafka

Posted by Miguel Silvestre <ms...@gmail.com>.
Hi,

Thank you! That worked. I used gradle 5.6.4 and it worked, just out of the
box.
Let's see if gradlew installAll will work :)
--
Miguel Silvestre


On Thu, Nov 14, 2019 at 10:41 AM Bruno Cadonna <br...@confluent.io> wrote:

> Hi Miguel,
>
> I build Kafka with Gradle 5.2.1 and at the end of the build I get the
> following message:
>
> "Deprecated Gradle features were used in this build, making it
> incompatible with Gradle 6.0."
>
> So, maybe you ran in one of those incompatibilities.
>
> Try to compile with a 5.x version of Gradle.
>
> Best,
> Bruno
>
> On Thu, Nov 14, 2019 at 10:59 AM Miguel Silvestre <ms...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > I'm on macOS Mojave 10.14.6 but when I run gradle (I'm using version
> 6.0) I
> > get the following error:
> >
> > What can I do?
> >
> > FAILURE: Build failed with an exception.
> >
> > * Where:
> > Build file '/Users/miguel.silvestre/Projects/others/kafka/build.gradle'
> > line: 480
> >
> > * What went wrong:
> > A problem occurred evaluating root project 'kafka'.
> > > Could not create task ':clients:spotbugsMain'.
> >    > Could not create task of type 'SpotBugsTask'.
> >       > Could not create an instance of type
> > com.github.spotbugs.internal.SpotBugsReportsImpl.
> >          >
> >
> org.gradle.api.reporting.internal.TaskReportContainer.<init>(Ljava/lang/Class;Lorg/gradle/api/Task;)V
> >
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> > --debug option to get more log output. Run with --scan to get full
> insights.
> >
> > * Get more help at https://help.gradle.org
> >
> > Deprecated Gradle features were used in this build, making it
> incompatible
> > with Gradle 7.0.
> > Use '--warning-mode all' to show the individual deprecation warnings.
> > See
> >
> https://docs.gradle.org/6.0/userguide/command_line_interface.html#sec:command_line_warnings
> >
> > BUILD FAILED in 2s
> > --
> > Miguel Silvestre
>

Re: Can not compile kafka

Posted by Bruno Cadonna <br...@confluent.io>.
Hi Miguel,

I build Kafka with Gradle 5.2.1 and at the end of the build I get the
following message:

"Deprecated Gradle features were used in this build, making it
incompatible with Gradle 6.0."

So, maybe you ran in one of those incompatibilities.

Try to compile with a 5.x version of Gradle.

Best,
Bruno

On Thu, Nov 14, 2019 at 10:59 AM Miguel Silvestre <ms...@gmail.com> wrote:
>
> Hi,
>
> I'm on macOS Mojave 10.14.6 but when I run gradle (I'm using version 6.0) I
> get the following error:
>
> What can I do?
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file '/Users/miguel.silvestre/Projects/others/kafka/build.gradle'
> line: 480
>
> * What went wrong:
> A problem occurred evaluating root project 'kafka'.
> > Could not create task ':clients:spotbugsMain'.
>    > Could not create task of type 'SpotBugsTask'.
>       > Could not create an instance of type
> com.github.spotbugs.internal.SpotBugsReportsImpl.
>          >
> org.gradle.api.reporting.internal.TaskReportContainer.<init>(Ljava/lang/Class;Lorg/gradle/api/Task;)V
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full insights.
>
> * Get more help at https://help.gradle.org
>
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 7.0.
> Use '--warning-mode all' to show the individual deprecation warnings.
> See
> https://docs.gradle.org/6.0/userguide/command_line_interface.html#sec:command_line_warnings
>
> BUILD FAILED in 2s
> --
> Miguel Silvestre