I have the following multi-project:
parent
-> subA
-> build.gradle
-> subB
-> build.gradle
-> build.gradle
-> settings.gradle
subB produces a zip file with some external dependencies. In project subA I need to depend on subB but not on the source code but on the assembled zip file. in subA/build.gradle I have:
configurations {
myConf
}
dependencies {
myConf project(':subB', configuration: 'zipConf')
}
task preparePackage << {
copy {
from configurations.myConf
into new File("$buildDir/tmp").getPath()
}
}
and in subB/build.gradle:
configurations {
zipConf
}
artifacts {
archives myZipTask
zipConf zip
}
but when I build subA it fails with:
> No such property: zip for class: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler
how do I depend on a zip archive build in another module?