📌  相关文章
📜  如何使 gradle 任务复制文件忽略某些文件夹 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:23.840000             🧑  作者: Mango

代码示例1
task copyToLib( type: Copy ) {
    into "$buildDir/myapp/lib"
    from configurations.runtime {
        exclude group: 'org.slf4j'
    }

    // We only want jars files to go in lib folder
    exclude "*.exe"
    exclude "*.bat"
    exclude "*.cmd"
    exclude "*.dll"
    exclude "build"
    exclude "build.gradle"

}