[GRADLE-1157] 'eclipseClasspath' task failed in Gradle-0.9-rc-1 when using client module dependencies + flatDir repo Created: 22/Sep/10 Updated: 04/Jan/13 Resolved: 11/Aug/11 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 1.0-milestone-5 |
Type: | Bug | ||
Reporter: | Teo Hui Ming | Assignee: | Peter Niederwieser |
Resolution: | Fixed | Votes: | 4 |
Description |
Hi, I'm using flat directory repository (store all .jar in Here's an example: build.gradle: apply plugin: 'java' apply plugin: 'eclipse' repositories { flatDir dirs: ["${gradle.gradleHomeDir}/lib"] } dependencies { compile module(':ant-launcher:1.8.1') { dependency ':ant:1.8.1' } } However, Gradle-0.9-rc-1 fails to generate Eclipse .classpath file Is this a bug or a non-compatible change introduced in Gradle-0.9-rc-1 Failed build output:
|
Comments |
Comment by Teo Hui Ming [ 24/Sep/10 ] |
Hi, turns out, the issue can be resolved by setting eclipseClasspath.downloadSources = false So here's a working sample: build.gradle: apply plugin: 'java' apply plugin: 'eclipse' repositories { flatDir dirs: ["${gradle.gradleHomeDir}/lib"] } dependencies { compile module(':ant-launcher:1.8.1') { dependency ':ant:1.8.1' } } eclipseClasspath { downloadSources = false; // required for eclipseClasspath to work } |
Comment by Teo Hui Ming [ 24/Sep/10 ] |
I will close this issue since it's not a bug. |
Comment by Hans Dockter [ 29/Sep/10 ] |
Thanks for reporting this. I'm reopening this issue as Gradle should not fail if sources don't exist. |
Comment by Andrew Thorburn [ 29/May/11 ] |
Issue 1548 (which I reported) is a duplicate of this issue. As far as I can tell, there's nothing I can do merge/resolve it? |
Comment by Peter Niederwieser [ 11/Aug/11 ] |
Happens for flatDir repos, irrelevant whether it's a client module dependency or regular external dependency. |