Hi,
my buildscript builds a multiproject. After the build i want to copy some dependencies from my repository to a specific folder.
Therefor I created a sperate task(outside of the subprojects Node), because this task should only run once.
task parseXml() {
doLast
{
parsedProjectXml.plugin.each{ plugin →
println ‘XML: ’ + plugin.@id
if(!arraySub.contains(plugin.@id))
{
println ‘Found: ’ + plugin.@id
configurations.release.getDependencies().add(’${project.ext.eclipseMavenGroup}:’ + plugin.@id + ‘:+’)
}
}
}
}
I get the following error: Could not find property 'release' on configuration container.
I created the configuration with (inside subprojects Node):
configurations { release }
My plan was to copy all the dependencies from the release configuration to the folder.
How can i add dependencies to a configuration or is there a better way to solve my task?