This message was deleted.
# community-support
s
This message was deleted.
v
Don't use
Copy
for that. Just use a custom task, getting the file through class path and putting it in the destination. For example like
Copy code
project.tasks.register("copyFile") {
    def outputFile = project.layout.buildDirectory.file("test.yaml")
    outputs.file(outputFile)
    doLast {
        outputFile.get().asFile << getClass().getResource("lib/test.yaml").text
    }
}
j
brilliant! Worked! thank you mate!
👌 1