Is it possible set a compile (or runtime) dependancy against a JAR produced
by a dependant project?

In the example below projA produces 2 Jars, projA.jar from the standard jar
task and projA_client.jar from the clientJar task.

projB has a compile dependancy on projA, however this includes both the
Jar's from projA.  Ideally I'd like to add the compile dependancy on the
clientJar only.  Is this possible?

allprojects {
    apply plugin: 'java' 
}

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

project(':projB') {     
        dependencies {
                compile project(':projA')
        }                       
}
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/compile-dependancy-on-JAR-from-dependant-project-tp3369590p3369590.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