[ 
https://issues.apache.org/jira/browse/KAFKA-2098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14498307#comment-14498307
 ] 

alexcb commented on KAFKA-2098:
-------------------------------

Thanks for the notes everyone.

gradlew (the gradle wrapper) is designed to allow users who do not have gradle 
setup to build the project. If you require gradle to be setup ahead of time, 
then it seems like one could just use gradle directly.

For example:

{noformat}
[root@feb6842638b9 kafkatest]# tar xzf kafka-0.8.2.1-src.tgz 
[root@feb6842638b9 kafkatest]# cd kafka-0.8.2.1-src
[root@feb6842638b9 kafka-0.8.2.1-src]# rm gradlew gradlew.bat       *** me 
simulating removing these files from the release
[root@feb6842638b9 kafka-0.8.2.1-src]# gradle jar

... output removed...

:core:processResources UP-TO-DATE
:core:classes
:core:copyDependantLibs
:core:jar
:examples:compileJava
:examples:processResources UP-TO-DATE
:examples:classes
:examples:jar
:contrib:hadoop-consumer:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:contrib:hadoop-consumer:processResources UP-TO-DATE
:contrib:hadoop-consumer:classes
:contrib:hadoop-consumer:jar
:contrib:hadoop-producer:compileJava
:contrib:hadoop-producer:processResources UP-TO-DATE
:contrib:hadoop-producer:classes
:contrib:hadoop-producer:jar

BUILD SUCCESSFUL
{noformat}

By using this directly, we 1) avoid the confusion of distributing a non-working 
gradle wrapper, and 2) bypass the wrapper and just use gradle directly.

Thanks.

> Gradle Wrapper Jar gone missing in 0.8.2.1
> ------------------------------------------
>
>                 Key: KAFKA-2098
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2098
>             Project: Kafka
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.8.2.1
>            Reporter: Rekha Joshi
>            Assignee: Rekha Joshi
>
> ./gradlew idea
> Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
> This was working in 0.8.2.Attaching patch.Thanks



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to