David Resnick wrote:
> 
> You can declare a dependency to a particular configuration of a project as
> described here:
> 
> http://www.gradle.org/0.9.2/docs/userguide/dependency_management.html#dependencyConfigurationsProjects
> 
> -David
> 
> 

I've read through and tried it, but I think I'm missing something.  Here's
my updated example, running gradle projB:build results in the error Could
not determine the dependencies of task ':projB:compileJava'

I wasn't sure how to get the clientJar as part of my new configuration, so I
referenced it in the artifacts section.

allprojects {
    apply plugin: 'java' 
}

project(':projA') {     
    configurations {            
        myclient                
    }
        
    task clientJar(type: Jar, dependsOn: classes) {
        from sourceSets.main.classesDir       
        baseName = 'projA_client'
    }                   
        
    artifacts { 
        archives jar, clientJar 
        myclient clientJar
    }
        
}

project(':projB') {     
    dependencies {              
        compile project(path: ':projA', configuration: ':myclient')
    }                   
} 


-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/compile-dependancy-on-JAR-from-dependant-project-tp3369590p3390971.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to