Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Basic Gradle Copy Task Not Working when moving file inside a build directory

    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