Peter Niederwieser wrote:
>
>
> richardm wrote:
>>
>> project(':projB') {
>> dependencies {
>> compile project(path: ':projA', configuration: ':myclient')
>> }
>> }
>>
>
> Should be:
>
> configuration: 'myclient' // not ':myclient'
>
> --
> Peter Niederwieser
> Developer, Gradle
> http://www.gradle.org
> Trainer & Consultant, Gradle Inc.
> http://www.gradle.biz
> Creator, Spock Framework
> http://spockframework.org
>
>
Great, thanks I hadn't spotted that. Here's my updated build incase
anyone's interested. I change clientJar to depend on the standard jar task,
I still wanted this to run, but not be available in the classpath for projB.
allprojects {
apply plugin: 'java'
}
project(':projA') {
configurations {
myclient
}
task clientJar(type: Jar, dependsOn: jar) {
from sourceSets.main.classesDir
baseName = 'projA_client'
include "**/ProjAClient.class"
}
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-tp3369590p3391053.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