task copy(type: Copy) {
def config = file("$buildDir/config")
outputs.dir config
config.mkdirs()
from 'resources'
into config
}
I'm trying to create a new directory called config inside my build directory and moving all the files from resource folder to config directory. WHen I run gradle build, my build is successful, but I didn't see a new directory inside my build directory and also my files are not copied.
Comments
Post a Comment