I would like something like this(notice the :sub is a reference to a subproject)
task deleteJars(type: Delete) {
ext.collection = files { genLibDir.listFiles() }
delete ext.collection
}
task copyJars(type: Copy) {
from(:sub.configurations.compile) {}
from(fixedLibDir) {}
into genLibDir
}
copyJars.dependsOn('deleteJars')
classes.dependsOn('copyJars')
This doesn't compile however. For playframework, I need to get the jars in that other projects configuration into my lib directory for playframework to startup. How can I fix the above code?
thanks, Dean