On 22/11/2010, at 11:59 PM, Jeppe Nejsum Madsen wrote:

> Hi,
> 
> Have a strange issue with the eclipse task:
> 
> With no existing .classpath, the task generates the following entry:
> 
> <classpathentry
> sourcepath="GRADLE_CACHE/org.scala-lang/scala-library/sources/scala-library-2.8.0-sources.jar"
> kind="var" 
> path="GRADLE_CACHE/org.scala-lang/scala-library/jars/scala-library-2.8.0.jar"
> exported="true"/>
> 
> But I've set up the scalaTools configuration to use Scala 2.8.1 and
> "gradle dep" doesn't show any trace of scala-library-2.8.0.jar.
> 
> It looks like a transitive dependency

It does, though conflict resolution should evict 2.8.0 in favour of 2.8.1. So, 
something is going wrong here. Is it possible for you to send in your 
dependencies { } section? Or a subset of it which demonstrates the problem?


> , so I tried to add:
> 
> configurations {
>  all*.exclude group: "org.scala-lang", module: "scala-library"
> }
> 
> But this doesn't seem to change anything. Any hints?

I think you're running into this issue: 
http://jira.codehaus.org/browse/GRADLE-1092

Basically, the eclipseClasspath task ignores configuration-level excludes.


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to