You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Boyang Chen <bc...@outlook.com> on 2018/12/12 20:41:08 UTC

Kafka Trunk Build Failure with Gradle 5.0

Hey friends,

I'm wondering anyone has seen this error before:

Could not find method annotationProcessor() for arguments [org.openjdk.jmh:jmh-generator-annprocess:1.21] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Basically I'm building the trunk using intellij and it failed on cross-configure project :jmh-benchmarks.

Another issue I detected was that the org.mockito library was not found during project build, which is also no clue yet.

Any suggestion on further debugging would be really appreciated.

Boyang

Re: Kafka Trunk Build Failure with Gradle 5.0

Posted by Guozhang Wang <wa...@gmail.com>.
I used to see your issue but I was on an older version of gradle and we
upgraded to 4.8.1.

On gradle 5.0 that issue goes away on my box:

guozhang @kafka-work: gradle --version

------------------------------------------------------------
Gradle 5.0
------------------------------------------------------------

Build time:   2018-11-26 11:48:43 UTC
Revision:     7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987

Kotlin DSL:   1.0.4
Kotlin:       1.3.10
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          1.8.0_66 (Oracle Corporation 25.66-b17)
OS:           Mac OS X 10.13.2 x86_64


Guozhang

On Wed, Dec 12, 2018 at 12:41 PM Boyang Chen <bc...@outlook.com> wrote:

> Hey friends,
>
> I'm wondering anyone has seen this error before:
>
> Could not find method annotationProcessor() for arguments
> [org.openjdk.jmh:jmh-generator-annprocess:1.21] on object of type
> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
>
> Basically I'm building the trunk using intellij and it failed on
> cross-configure project :jmh-benchmarks.
>
> Another issue I detected was that the org.mockito library was not found
> during project build, which is also no clue yet.
>
> Any suggestion on further debugging would be really appreciated.
>
> Boyang
>


-- 
-- Guozhang

Re: Kafka Trunk Build Failure with Gradle 5.0

Posted by Martin Gainty <mg...@hotmail.com>.
there are at least 12 things that can go wrong with any gradle build
if you can provider a link to the source-tree you are building
we can be narrow down the reasons you are experiencing
NoSuchMethodError  for
 ____ version of Kafka

T & R
________________________________
From: Boyang Chen <bc...@outlook.com>
Sent: Wednesday, December 12, 2018 3:41 PM
To: dev@kafka.apache.org; Users
Subject: Kafka Trunk Build Failure with Gradle 5.0

Hey friends,

I'm wondering anyone has seen this error before:

Could not find method annotationProcessor() for arguments [org.openjdk.jmh:jmh-generator-annprocess:1.21] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Basically I'm building the trunk using intellij and it failed on cross-configure project :jmh-benchmarks.

Another issue I detected was that the org.mockito library was not found during project build, which is also no clue yet.

Any suggestion on further debugging would be really appreciated.

Boyang