Slackbot
02/28/2022, 8:33 PMVampire
02/28/2022, 10:12 PMCopy for that.
Just use a custom task, getting the file through class path and putting it in the destination.
For example like
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
}
}Juan Paulo Breinlinger
03/01/2022, 8:16 AM