vvcephei commented on pull request #10386:
URL: https://github.com/apache/kafka/pull/10386#issuecomment-805463999


   Oh, sorry, I should have been specific.
   
   It's super weird. The symptom looks like list this user's report: 
https://lists.apache.org/thread.html/rdbf942295aa41f3a4852b46ad0d16144c5a3516a1fe9400921af7137%40%3Cdev.kafka.apache.org%3E
   
   The task works just fine on my local fork of Kafka, 2.8 branch, but while 
verifying the 2.8.0RC0 I'm trying to publish, I see:
   
   (candidate artifact: 
https://home.apache.org/~vvcephei/kafka-2.8.0-rc0/kafka-2.8.0-src.tgz)
   
   ```
   [john@arcturus kafka-2.8.0-src]$ ./gradlew clean install
   > Configure project :
   Building project 'core' with Scala version 2.13.5
   Building project 'streams-scala' with Scala version 2.13.5
   FAILURE: Build failed with an exception.
   * Where:
   Build file '/tmp/2.8/kafka-2.8.0-src/build.gradle' line: 2282
   * What went wrong:
   A problem occurred evaluating root project 'kafka-2.8.0-src'.
   > Could not get unknown property 'compileJava' for root project 
'kafka-2.8.0-src' of type org.gradle.api.Project.
   * 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.8.1/userguide/command_line_interface.html#sec:command_line_warnings
   BUILD FAILED in 523ms
   ```
   
   The line (2282) is in the aggregatedJavadoc task.
   
   I really can't understand how I'm getting a different result on this 
extracted tarball than I get on my primary clone of Kafka.
   
   I checked the build.gradle file, and it's identical:
   ```
   [john@arcturus kafka-2.8.0-src]$ diff build.gradle 
/home/repos/kafka/build.gradle 
   [john@arcturus kafka-2.8.0-src]$ sha1sum build.gradle 
   3d6dbaeb00a25dc4b52a39a7912b463bd3cf5203  build.gradle
   [john@arcturus kafka-2.8.0-src]$ sha1sum /home/repos/kafka/build.gradle 
   3d6dbaeb00a25dc4b52a39a7912b463bd3cf5203  /home/repos/kafka/build.gradle
   ```
   
   As well as gradlew:
   ```
   [john@arcturus kafka-2.8.0-src]$ diff gradlew /home/repos/kafka/gradlew
   [john@arcturus kafka-2.8.0-src]$ sha1sum gradlew
   3d1f1466c838a14e44053e78c259196da7dae45f  gradlew
   [john@arcturus kafka-2.8.0-src]$ sha1sum /home/repos/kafka/gradlew
   3d1f1466c838a14e44053e78c259196da7dae45f  /home/repos/kafka/gradlew
   ```
   
   And I also verified that the actual version of Gradle is the same:
   ```
   [john@arcturus kafka-2.8.0-src]$ ./gradlew -v
   ------------------------------------------------------------
   Gradle 6.8.1
   ------------------------------------------------------------
   Build time:   2021-01-22 13:20:08 UTC
   Revision:     31f14a87d93945024ab7a78de84102a3400fa5b2
   Kotlin:       1.4.20
   Groovy:       2.5.12
   Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
   JVM:          1.8.0_282 (Oracle Corporation 25.282-b08)
   OS:           Linux 5.11.6-arch1-1 amd64
   [john@arcturus kafka-2.8.0-src]$ cd /home/repos/kafka
   [john@arcturus kafka]$ ./gradlew -v
   ------------------------------------------------------------
   Gradle 6.8.1
   ------------------------------------------------------------
   Build time:   2021-01-22 13:20:08 UTC
   Revision:     31f14a87d93945024ab7a78de84102a3400fa5b2
   Kotlin:       1.4.20
   Groovy:       2.5.12
   Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
   JVM:          1.8.0_282 (Oracle Corporation 25.282-b08)
   OS:           Linux 5.11.6-arch1-1 amd64
   [john@arcturus kafka]$ 
   ```
   
   In some sense, what is actually confusing is why it passes for anyone, not 
so much why it fails... It is true that the `java` plugin is only applied to 
the subprojects, not the root, so it does seem to make sense that we couldn't 
create a task in the root project that depends on `compileJava` (which comes 
from that `java` plugin).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to