Answers for "how to make gradle task copy files ignore certain files/folder"

0

how to make gradle task copy files ignore certain files/folder

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"

}
Posted by: Guest on November-06-2020

Code answers related to "how to make gradle task copy files ignore certain files/folder"

Browse Popular Code Answers by Language