0
在我的gradle產出/ deployment.gradle文件我有這樣的:搖籃複製任務不起作用
basedir = devHomeDir.getAbsolutePath()
deploymentDir = new File(project, "deployment")
deploymentLibDir = new File(deploymentDir, 'project/lib')
task deployProjectJars(type: Copy) {
from tasks.getByPath(':baseproject:project:assembleAll')
into deploymentLibDir
exclude '*-sources.jar'
}
當我運行deployProjectJars作爲輸出我得到這個::deployProjectJars NO-SOURCE
並沒有什麼被複制。所以我給gradle.build添加了一個任務來複制這些罐子。所以問題是 - 爲什麼我原來的方法不起作用?