java gradle create new file code example
Example: 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"
}