$GRADLE_HOME refers to the installation location of Gradle. It's
different for each box, I don't know where it was installed on your
machine.
In that directory there will be another directory called lib which
will contain many other jar files, one of which will be called
ivy.jar. You need to download (or build from source) a current
unreleased version of Ivy. When you have a version of Ivy newer than
2.1.0 (which is the current released version) you need to place that
ivy.jar into the lib directory in your Gradle installation directory,
replacing any existing ivy.jar files.
This will give you the most current version Ivy and should hopefully
clear up any dependency resolution problems in your project.
Sent from my iPhone
On May 23, 2010, at 22:25, Ted Yu <[email protected]> wrote:
Which file defines GRADLE_HOME variable ?
I searched the files under project root directory and didn't find it.
README.txt caramel-run.txt
flows inputData settings.gradle
build codeFormatter.xml
gradle.properties install.properties snmp-grid.properties
build-libs da_dupe.properties
gradlew measureTrace.log src
build.gradle flash-grid.properties
gradlew.bat mmp-25-dist target
buildSrc flow hadoop-site-grid.xml
Thanks
On Sat, May 22, 2010 at 10:23 AM, Jason Porter <[email protected]
> wrote:
It's in $GRADLE_HOME/lib. Gradle needs it to run, it won't be in any
ivy.xml file.
Sent from my iPhone
On May 22, 2010, at 10:02, Ted Yu <[email protected]> wrote:
But I don't find any ivy.jar in m2m-perf, the project I am working
on.
Maybe gradle gets it from repository ?
On Sat, May 22, 2010 at 8:07 AM, Jason Porter <[email protected]
> wrote:
Sorry, no, I'm talking about the ivy.jar.
Sent from my iPhone
On May 22, 2010, at 8:01, Ted Yu <[email protected]> wrote:
Jason:
tyumac:main tyu$ head build.gradle
import org.gradle.api.Task
import org.gradle.execution.Dag
import org.apache.ivy.plugins.resolver.URLResolver
Should I upgrade ivy-module version shown here ?
cat buildSrc/build/ivy.xml
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="1.0">
<info organisation="org.gradle"
module="buildSrc"
revision="SNAPSHOT"
status="integration"
publication="20100520105716"
/>
<configurations>
<conf name="default" visibility="public"
extends="master,runtime"/>
<conf name="groovy" visibility="private"/>
<conf name="libs" visibility="public"/>
<conf name="compile" visibility="private"
extends="groovy"/>
<conf name="runtime" visibility="private"
extends="compile"/>
<conf name="testRuntime" visibility="private"
extends="runtime,testCompile"/>
<conf name="testCompile" visibility="private"
extends="compile"/>
<conf name="dists" visibility="public"/>
<conf name="master" visibility="public"/>
</configurations>
<publications>
<artifact name="buildSrc" type="jar" ext="jar"
conf="libs"/>
<artifact name="buildSrc" type="jar" ext="jar"
conf="master"/>
</publications>
</ivy-module>
On Sat, May 22, 2010 at 12:10 AM, Jason Porter <[email protected]
> wrote:
If the poms for any of these use <import> or other 2.0.9 features it
will not work with the current version of Ivy Gradle is using, you
could download a snapshot of Ivy and replace the one in gradle's
lib.
On Thu, May 20, 2010 at 16:52, Ted Yu <[email protected]> wrote:
> Hi,
> I got the following error after changing m2mVersion below:
> def m2mVersion='trunk-SNAPSHOT'
> ["com.iq.m2m:m2m-platform:$m2mVersion",
> "com.iq.m2m:m2m-flows:$m2mVersion", "com.iq.m2m:m2m-installer:
$m2mVersion",
> "com.iq.m2m:m2m-commons:$m2mVersion", "com.iq.m2m:m2m-sdk:
$m2mVersion"].each
> {
> dependency(['compile'], it) {
> exclude(module: 'maven-script-ant')
> exclude(module: 'jmock')
> }
> }
>
> ==== legacy-repository: tried
>
> -- artifact com.google#collect;0.8.0!collect.jar:
>
>
> http://repository.carrieriq.com/maven/com.google/jars/collect-0.8.0.jar
>
> ==== MavenRepo: tried
>
>
> http://repo1.maven.org/maven2/com/google/collect/0.8.0/collect-0.8.0.pom
>
> -- artifact com.google#collect;0.8.0!collect.jar:
>
>
> http://repo1.maven.org/maven2/com/google/collect/0.8.0/collect-0.8.0.jar
>
> ::::::::::::::::::::::::::::::::::::::::::::::
>
> :: UNRESOLVED DEPENDENCIES ::
>
> ::::::::::::::::::::::::::::::::::::::::::::::
>
> :: org.eclipse.xtext#xtext-core;0.7.2: not found
>
> :: org.eclipse.xtext#xtext-util;0.7.2: not found
>
> :: org.eclipse.emf#ecore;2.5.0: not found
>
> :: org.eclipse.emf#common;2.5.0: not found
>
> :: org.eclipse.emf#index;0.7.0: not found
>
> :: org.antlr#antlr-runtime;3.0.0: not found
>
> :: com.google#guice;1.0_patched: not found
>
> :: com.google#collect;0.8.0: not found
>
> ::::::::::::::::::::::::::::::::::::::::::::::
>
> If m2mVersion is 2.4.0-SNAPSHOT, './gradlew eclipse' passes.
>
> I am wondering why m2mVersion would affect 3rd party dependency
checking.
>
> Please comment.
>
--
Jason Porter
Software Engineer
Open Source Advocate
PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu