我尝试从多个源文件夹构建项目但是gradle sync任务被卡住(永远0%)
task syncSharedCode(type: Sync) {
group 'build auxiliary'
from '../../base'
into 'combined'
}
task build(type: Copy, dependsOn: ['syncSharedCode']) {
group 'build'
into 'combined'
from 'custom'
exclude "/shared/**/*_abstract.*"
}
除了获取和释放注册表锁
之外,同步任务启动后没有输出11:19:35.690 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:19:35.691 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
11:19:35.691 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
我不知道为什么每次都会被卡住,我希望你能提供一些见解。