Wednesday, February 4, 2015

Build Apache Kafka

mahesh@hd-mahesh:~$ ./gradlew srcJar
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain


mahesh@hd-mahesh:~$ ./gradlew jar
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

you will get above errors if straight away execute the "./gradlew srcJar" or "./gradlew jar".

Type the followng it will bootstrap and download the wrapper.
gradle wrap
./gradlew clean



A successful build output.

mahesh@hd-mahesh:~$ ./gradlew srcJar
Downloading https://services.gradle.org/distributions/gradle-2.2.1-bin.zip
 

Unzipping /home/mahesh/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27/gradle-2.2.1-bin.zip to /home/mahesh/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27
Set executable permissions for: /home/mahesh/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27/gradle-2.2.1/bin/gradle
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html.
Building project 'core' with Scala version 2.10.4
:clients:srcJar
:contrib:srcJar
:core:srcJar
:examples:srcJar
:contrib:hadoop-consumer:srcJar
:contrib:hadoop-producer:srcJar

BUILD SUCCESSFUL

Total time: 5 mins 3.677 secs



All the above information is available in following URI:
https://github.com/apache/kafka/tree/trunk

No comments:

Post a Comment