Hi,
I have a question concerning task declaration order and multi-projects.
We use gradle in a multi project environment. Common build functionality is placed in a non-project directory beside the subprojects.
This common build functionality is included in the main project gradle file via
subprojects {
apply from: "$rootDir/include/jar.gradle"
}
The file jar.gradle contains for example a custom task “CollectDeploymentDescriptor” and a configured task “collectDeploymentDescriptor”:
task collectDeploymentDescriptor(type: CollectDeploymenDescriptors) {
...
}
class CollectDeploymenDescriptors extends DefaultTask {
...
}
When an additonal tasks in a subproject “framework” of type “CollectDeploymentDescriptor” is defined, the following error occurs
Cause: Could not find property 'CollectDeploymenDescriptor' on project ':framework'.
It seems that the order of task declaration is bad for me. Do you have an idea to solve my problem?
Best regards, Michael