Hi,
I'm using flat directory repository (store all .jar in
$PROJECT_HOME/lib/) and define jar dependencies explicitly in
build.gradle using client module dependencies.
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
when running task ':eclipseClasspath'. Seems like it is looking for
*-sources.jar (ant-launcher-1.8.1-sources.jar) in the flat directory
repository, which of course, does not exist.
Is this a bug or a non-compatible change introduced in Gradle-0.9-rc-1
Eclipse plugin? because afaik, it works well in Gradle-0.9-preview-3.
Failed build output:
"""
D:\teohm-workspace\learn\gradle-plugin-eclipse-issues> gradle eclipseClasspath
The Gradle.getGradleHomeDir() method is deprecated and will be removed
in the next version of Gradle.
:eclipseClasspath
:: problems summary ::
:::: WARNINGS
module not found: #ant-launcher;1.8.1
==== clientModule: tried
==== internal-repository: tried
==== a03330958801db2c5a2d581f406fca79: tried
-- artifact #ant-launcher;1.8.1!ant-launcher.jar(source):
D:\teohm-workspace\tools\gradle-0.9-rc-1\lib/ant-launcher-1.8.1-sources.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: #ant-launcher;1.8.1: not found
::::::::::::::::::::::::::::::::::::::::::::::
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\teohm-workspace\learn\gradle-plugin-eclipse-issues\build.gradle'
* What went wrong:
Execution failed for task ':eclipseClasspath'.
Cause: Could not resolve all dependencies for configuration
'detachedConfiguration2':
- unresolved dependency: #ant-launcher;1.8.1: not found
* Try:
Run with -s or -d option to get more details. Run with -S option to
get the full (very verbose) stacktrace.
BUILD FAILED
Total time: 4.757 secs
"""
Cheers,
--
Teo Hui Ming
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email