On 13/11/2010, at 6:05 AM, Jim Moore wrote:

> I can't get the IDEA plugin to create my .iml correctly (in 0.9-rc1) and 
> can't figure out why, though it appears to be a much more fundamental 
> problem.  I stripped it down to as simple a build file as I could (below) and 
> it's not behaving as I would expect:

You'll need to add a repository definition, to define where to get the 
dependencies from. Though, Gradle should throw an exception or something, 
rather than just silently ignoring the dependencies. Could you add a JIRA issue 
for this problem?


> 
> ----
> 
> apply plugin: 'groovy'
> 
> dependencies {
>     testCompile 'org.spockframework:spock-core:0.4-groovy-1.7'
>     testRuntime 'junit:junit:4.7'
>     testRuntime 'ch.qos.logback:logback-classic:0.9.24'
>     testRuntime 'org.slf4j:slf4j-api:1.6.1'
> }
> 
> afterEvaluate {
>     def config = configurations.findByName('testRuntime')
>     if (!config) {
>         println "testRuntime not found in 
> ${configurations.getAsMap().keySet()}"
>         return
>     }
>     println "  resolve ${config.resolve()}"
>     println "  copying ${config.files.collect {File file -> file.name}}"
>     println "  copying rec ${config.copyRecursive().files.collect {File file 
> -> file.name}}"
>     println "  copying art ${config.allArtifacts.collect {art -> 
> art.file.name}}"
>     println "  deps ${config.dependencies.collect {Dependency dep -> 
> dep.getName()}}"
> }
> 
> ----
> 
> When I run "gradle clean" I get:
> 
>   resolve root project 'git' []
>   copying root project 'git' []
>   copying rec root project 'git' []
>   copying art root project 'git' []
>   deps root project 'git' [junit, logback-classic, slf4j-api]
> :clean
> 
> Any idea what the heck is going on?
> 


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

Reply via email to