我想要这样的东西(注意::sub是对子项目的引用)
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')
Run Code Online (Sandbox Code Playgroud)
但是,这不会编译。对于playframework,我需要将其他项目配置中的jars放入我的lib目录中,以启动playframework。如何解决以上代码?
谢谢,院长
| 归档时间: |
|
| 查看次数: |
2318 次 |
| 最近记录: |