So, from the docs we have:
task makeMyJar(type: Jar)
artifacts {
//archives makeMyJar
}
So.. if I have a multi-module project.. and I have say, modules A and B
if B depends on A, and A "does the above" (mucks with the archives
configuraiton at all).. then problem B will fail to compile since somehow its
capability of pulling the artifacts "produced by A" gets broken.
*soooooo*..
if I have this /A/build.gradle
apply {
apply plugin: 'maven'
apply plugin: 'groovy'
}
task makeMyJar(type: Jar)
artifacts {
archives makeMyJar
}
configurations {
deployerJars
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-http:1.0-beta-2"
compile project(':shared')
}
uploadArchives {
uploadDescriptor = false
repositories.mavenDeployer {
repository(url:
"http://localhost:8080/artifactory/libs-snapshots-local") {
authentication(userName: 'user', password: 'password')
}
}
}
if B:build.gradle is (partially):
dependencies {
compile project(':A')
}
B won't work.. because somehow the artifacts "closure usage" (in A) breaks the
chain for B.
Just so few examples of this in existence, not sure where to turn.
Right now, I just comment out the archives makeMyJar line, manually, when I
want to do things.
Thanks
Roger
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email