Regarding gradle build through intellj

Hi;
i imported the source code into IDEA IDE and wants to run gradle build
der through IDE using build.gradle.I m new to gradle and IDEA too.when
i try to run this gradle script through IDE i get class not found
exceptions regarding gradle.
In finding remedy for this i downloaded gradle and has given
"gradle_directory"/bin as gradle classpath.but still i m getting same
exceptions.
can someone tell me wat wrong i m doing in setting gradle in IDE.

Thnks,

I had the same problem. I solved it under linux using a simple sed
script. First you need to perform a "./gradlew build" so that libraries
get downloaded. Then open a terminal at the root of the project and enter :

cd .idea

for f in ls libraries; do sed -i

"s/USER_HOME$/.gradle/GRADLE_REPOSITORY$/g" libraries/$f; done

Then reopen your project.

Cédric

Le 13/07/2011 13:03, arien a écrit :

Hi;
i imported the source code into IDEA IDE and wants to run gradle build
der through IDE using build.gradle.I m new to gradle and IDEA too.when
i try to run this gradle script through IDE i get class not found
exceptions regarding gradle.
In finding remedy for this i downloaded gradle and has given
"gradle_directory"/bin as gradle classpath.but still i m getting same
exceptions.
can someone tell me wat wrong i m doing in setting gradle in IDE.

Thnks,

Some time ago I wrote the following tutorial

Hopefully it is not too dated.

Regards,
Lukas

On Wed, Jul 13, 2011 at 1:09 PM, Cédric Champeau <
cedric.champeau@lingway.com> wrote:

I had the same problem. I solved it under linux using a simple sed script.
First you need to perform a "./gradlew build" so that libraries get
downloaded. Then open a terminal at the root of the project and enter :

cd .idea

for f in ls libraries; do sed -i "s/USER_HOME$/.gradle/**GRADLE_REPOSITORY$/g"

libraries/$f; done

Then reopen your project.

Cédric

Le 13/07/2011 13:03, arien a écrit :

Hi;

i imported the source code into IDEA IDE and wants to run gradle build
der through IDE using build.gradle.I m new to gradle and IDEA too.when
i try to run this gradle script through IDE i get class not found
exceptions regarding gradle.
In finding remedy for this i downloaded gradle and has given
"gradle_directory"/bin as gradle classpath.but still i m getting same
exceptions.
can someone tell me wat wrong i m doing in setting gradle in IDE.

Thnks,

The tutorial looks fine to me, however the committed project files don't
use GRADLE_REPOSITORY path variable, but $USER_HOME$/.gradle instead.
That's why I had to perform some in place replacements.

Le 13/07/2011 14:24, Lukáš Vlček a écrit :

Some time ago I wrote the following tutorial
Elasticsearch Platform — Find real-time answers at scale | Elastic

Hopefully it is not too dated.

Regards,
Lukas

On Wed, Jul 13, 2011 at 1:09 PM, Cédric Champeau
<cedric.champeau@lingway.com mailto:cedric.champeau@lingway.com> wrote:

I had the same problem. I solved it under linux using a simple sed
script. First you need to perform a "./gradlew build" so that
libraries get downloaded. Then open a terminal at the root of the
project and enter :

# cd .idea
# for f in `ls libraries`; do  sed -i
"s/USER_HOME\$\/.gradle/GRADLE_REPOSITORY\$/g" libraries/$f; done

Then reopen your project.

Cédric

Le 13/07/2011 13:03, arien a écrit :

    Hi;
    i imported the source code into IDEA IDE and wants to run
    gradle build
    der through IDE using build.gradle.I m new to gradle and IDEA
    too.when
    i try to run this gradle script through IDE i get class not found
    exceptions regarding gradle.
    In finding remedy for this i downloaded gradle and has given
    "gradle_directory"/bin as gradle classpath.but still i m
    getting same
    exceptions.
    can someone tell me wat wrong i m doing in setting gradle in IDE.

    Thnks,

Hi;
I tried ./gradle build but after some time (after half an hour) it
shows tests built successfully and gets stuck..after (ctrl+c) when
'ls' done;libraries folder doesnt show up.so cant perform sed action.

Here is the execption for more information:-

On Jul 13, 5:28 pm, Cédric Champeau cedric.champ...@lingway.com
wrote:

The tutorial looks fine to me, however the committed project files don't
use GRADLE_REPOSITORY path variable, but $USER_HOME$/.gradle instead.
That's why I had to perform some in place replaceme
/usr/lib/jvm/java-6-openjdk/bin/java -Dgradle.home=/home/fstl/
gradle-1.0-milestone-3/bin -Dtools.jar=/usr/lib/jvm/java-6-openjdk/lib/
tools.jar -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/
fstl/IntellJIDE/idea-IC-107.322/bin -Dfile.encoding=UTF-8 -classpath /
home/fstl/IntellJIDE/idea-IC-107.322/lib/idea_rt.jar
com.intellij.rt.execution.application.AppMain
org.gradle.launcher.GradleMain --build-file /home/fstl/newElastic1/
elasticsearch/build.gradle
Exception in thread "main" java.lang.ClassNotFoundException:
org.gradle.launcher.GradleMain
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:

Process finished with exit code 1

Thanks;
Arien

nts.

Le 13/07/2011 14:24, Lukáš Vlček a écrit :

Some time ago I wrote the following tutorial
Elasticsearch Platform — Find real-time answers at scale | Elastic...

Hopefully it is not too dated.

Regards,
Lukas

On Wed, Jul 13, 2011 at 1:09 PM, Cédric Champeau
<cedric.champ...@lingway.com mailto:cedric.champ...@lingway.com> wrote:

I had the same problem. I solved it under linux using a simple sed
script. First you need to perform a "./gradlew build" so that
libraries get downloaded. Then open a terminal at the root of the
project and enter :
# cd .idea
# for f in `ls libraries`; do  sed -i
"s/USER_HOME\$\/.gradle/GRADLE_REPOSITORY\$/g" libraries/$f; done
Then reopen your project.
Cédric
Le 13/07/2011 13:03, arien a écrit :
    Hi;
    i imported the source code into IDEA IDE and wants to run
    gradle build
    der through IDE using build.gradle.I m new to gradle and IDEA
    too.when
    i try to run this gradle script through IDE i get class not found
    exceptions regarding gradle.
    In finding remedy for this i downloaded gradle and has given
    "gradle_directory"/bin as gradle classpath.but still i m
    getting same
    exceptions.
    can someone tell me wat wrong i m doing in setting gradle in IDE.
    Thnks,