You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Alexandre Dupriez <al...@gmail.com> on 2021/03/10 14:07:08 UTC
Gradle error - aggregatedJavadoc depending on "compileJava"
Hi Community,
I tried to build Kafka from trunk on my environment today (2021, March
10th) and it failed with the following Gradle error at the beginning
of the build, while Gradle configures project from build.gradle:
"Could not get unknown property 'compileJava' for root project
'<project-root>' of type org.gradle.api.Project."
The command used is "gradle releaseTarGz". Removing "dependsOn:
compileJava" from the task "aggregatedJavadoc" (added on March 9th
[1]) made the problem disappear - I wonder if anyone else encountered
the same problem?
[1] https://github.com/apache/kafka/pull/10272
Many thanks,
Alexandre
Re: Gradle error - aggregatedJavadoc depending on "compileJava"
Posted by Ismael Juma <is...@juma.me.uk>.
Can you please verify if the issue occurs with `./gradlew`? That's the only
supported mechanism.
Ismael
On Wed, Mar 10, 2021 at 1:31 PM Alexandre Dupriez <
alexandre.dupriez@gmail.com> wrote:
> Hi Ismael,
>
> Thanks for your quick response. I used the system-installed gradle.
> Surprisingly, the same command works successfully as well on my laptop
> but not on the target environment - both use the same version of
> Gradle (6.8.3) and JDK (1.8), and start with an empty Gradle cache.
> Note the error is given before any compilation actually happens, at
> the "configure" stage of the build.
>
> Thanks,
> Alexandre
>
> Le mer. 10 mars 2021 à 20:58, Ismael Juma <is...@juma.me.uk> a écrit :
> >
> > Hi Alexandre,
> >
> > Did you use `./gradlew releaseTarGz` (you should never use the system
> > installed gradle)? That works for me. Also `./gradlew clean releaseTarGz`
> > works for me.
> >
> > Ismael
> >
> > On Wed, Mar 10, 2021 at 8:42 AM Ismael Juma <is...@juma.me.uk> wrote:
> >
> > > Interesting, I didn't have the same problem. I'll try to reproduce.
> > >
> > > Ismael
> > >
> > > On Wed, Mar 10, 2021, 6:07 AM Alexandre Dupriez <
> > > alexandre.dupriez@gmail.com> wrote:
> > >
> > >> Hi Community,
> > >>
> > >> I tried to build Kafka from trunk on my environment today (2021, March
> > >> 10th) and it failed with the following Gradle error at the beginning
> > >> of the build, while Gradle configures project from build.gradle:
> > >>
> > >> "Could not get unknown property 'compileJava' for root project
> > >> '<project-root>' of type org.gradle.api.Project."
> > >>
> > >> The command used is "gradle releaseTarGz". Removing "dependsOn:
> > >> compileJava" from the task "aggregatedJavadoc" (added on March 9th
> > >> [1]) made the problem disappear - I wonder if anyone else encountered
> > >> the same problem?
> > >>
> > >> [1] https://github.com/apache/kafka/pull/10272
> > >>
> > >> Many thanks,
> > >> Alexandre
> > >>
> > >
>
Re: Gradle error - aggregatedJavadoc depending on "compileJava"
Posted by Alexandre Dupriez <al...@gmail.com>.
Hi Ismael,
Thanks for your quick response. I used the system-installed gradle.
Surprisingly, the same command works successfully as well on my laptop
but not on the target environment - both use the same version of
Gradle (6.8.3) and JDK (1.8), and start with an empty Gradle cache.
Note the error is given before any compilation actually happens, at
the "configure" stage of the build.
Thanks,
Alexandre
Le mer. 10 mars 2021 à 20:58, Ismael Juma <is...@juma.me.uk> a écrit :
>
> Hi Alexandre,
>
> Did you use `./gradlew releaseTarGz` (you should never use the system
> installed gradle)? That works for me. Also `./gradlew clean releaseTarGz`
> works for me.
>
> Ismael
>
> On Wed, Mar 10, 2021 at 8:42 AM Ismael Juma <is...@juma.me.uk> wrote:
>
> > Interesting, I didn't have the same problem. I'll try to reproduce.
> >
> > Ismael
> >
> > On Wed, Mar 10, 2021, 6:07 AM Alexandre Dupriez <
> > alexandre.dupriez@gmail.com> wrote:
> >
> >> Hi Community,
> >>
> >> I tried to build Kafka from trunk on my environment today (2021, March
> >> 10th) and it failed with the following Gradle error at the beginning
> >> of the build, while Gradle configures project from build.gradle:
> >>
> >> "Could not get unknown property 'compileJava' for root project
> >> '<project-root>' of type org.gradle.api.Project."
> >>
> >> The command used is "gradle releaseTarGz". Removing "dependsOn:
> >> compileJava" from the task "aggregatedJavadoc" (added on March 9th
> >> [1]) made the problem disappear - I wonder if anyone else encountered
> >> the same problem?
> >>
> >> [1] https://github.com/apache/kafka/pull/10272
> >>
> >> Many thanks,
> >> Alexandre
> >>
> >
Re: Gradle error - aggregatedJavadoc depending on "compileJava"
Posted by Ismael Juma <is...@juma.me.uk>.
Hi Alexandre,
Did you use `./gradlew releaseTarGz` (you should never use the system
installed gradle)? That works for me. Also `./gradlew clean releaseTarGz`
works for me.
Ismael
On Wed, Mar 10, 2021 at 8:42 AM Ismael Juma <is...@juma.me.uk> wrote:
> Interesting, I didn't have the same problem. I'll try to reproduce.
>
> Ismael
>
> On Wed, Mar 10, 2021, 6:07 AM Alexandre Dupriez <
> alexandre.dupriez@gmail.com> wrote:
>
>> Hi Community,
>>
>> I tried to build Kafka from trunk on my environment today (2021, March
>> 10th) and it failed with the following Gradle error at the beginning
>> of the build, while Gradle configures project from build.gradle:
>>
>> "Could not get unknown property 'compileJava' for root project
>> '<project-root>' of type org.gradle.api.Project."
>>
>> The command used is "gradle releaseTarGz". Removing "dependsOn:
>> compileJava" from the task "aggregatedJavadoc" (added on March 9th
>> [1]) made the problem disappear - I wonder if anyone else encountered
>> the same problem?
>>
>> [1] https://github.com/apache/kafka/pull/10272
>>
>> Many thanks,
>> Alexandre
>>
>
Re: Gradle error - aggregatedJavadoc depending on "compileJava"
Posted by Ismael Juma <is...@juma.me.uk>.
Interesting, I didn't have the same problem. I'll try to reproduce.
Ismael
On Wed, Mar 10, 2021, 6:07 AM Alexandre Dupriez <al...@gmail.com>
wrote:
> Hi Community,
>
> I tried to build Kafka from trunk on my environment today (2021, March
> 10th) and it failed with the following Gradle error at the beginning
> of the build, while Gradle configures project from build.gradle:
>
> "Could not get unknown property 'compileJava' for root project
> '<project-root>' of type org.gradle.api.Project."
>
> The command used is "gradle releaseTarGz". Removing "dependsOn:
> compileJava" from the task "aggregatedJavadoc" (added on March 9th
> [1]) made the problem disappear - I wonder if anyone else encountered
> the same problem?
>
> [1] https://github.com/apache/kafka/pull/10272
>
> Many thanks,
> Alexandre
>
Re: Gradle error - aggregatedJavadoc depending on "compileJava"
Posted by Alexandre Dupriez <al...@gmail.com>.
Hi Chia-Ping and Ismael,
Thanks for your follow-ups and thanks for finding the root-cause for
this, that the problem appeared when the rat plugin wasn't applied
when the .git folder does not exist. This is something faced indeed
with a new locally cloned repository, while existing local
repositories for which a build had already been made worked just fine.
Thanks,
Alexandre
Le mer. 24 mars 2021 à 06:16, Chia-Ping Tsai <ch...@apache.org> a écrit :
>
> hi Alexandre,
>
> please take a look at https://github.com/apache/kafka/pull/10386. We are going to fix that error. Thanks for your report.
>
> On 2021/03/10 14:07:08, Alexandre Dupriez <al...@gmail.com> wrote:
> > Hi Community,
> >
> > I tried to build Kafka from trunk on my environment today (2021, March
> > 10th) and it failed with the following Gradle error at the beginning
> > of the build, while Gradle configures project from build.gradle:
> >
> > "Could not get unknown property 'compileJava' for root project
> > '<project-root>' of type org.gradle.api.Project."
> >
> > The command used is "gradle releaseTarGz". Removing "dependsOn:
> > compileJava" from the task "aggregatedJavadoc" (added on March 9th
> > [1]) made the problem disappear - I wonder if anyone else encountered
> > the same problem?
> >
> > [1] https://github.com/apache/kafka/pull/10272
> >
> > Many thanks,
> > Alexandre
> >
Re: Gradle error - aggregatedJavadoc depending on "compileJava"
Posted by Chia-Ping Tsai <ch...@apache.org>.
hi Alexandre,
please take a look at https://github.com/apache/kafka/pull/10386. We are going to fix that error. Thanks for your report.
On 2021/03/10 14:07:08, Alexandre Dupriez <al...@gmail.com> wrote:
> Hi Community,
>
> I tried to build Kafka from trunk on my environment today (2021, March
> 10th) and it failed with the following Gradle error at the beginning
> of the build, while Gradle configures project from build.gradle:
>
> "Could not get unknown property 'compileJava' for root project
> '<project-root>' of type org.gradle.api.Project."
>
> The command used is "gradle releaseTarGz". Removing "dependsOn:
> compileJava" from the task "aggregatedJavadoc" (added on March 9th
> [1]) made the problem disappear - I wonder if anyone else encountered
> the same problem?
>
> [1] https://github.com/apache/kafka/pull/10272
>
> Many thanks,
> Alexandre
>