Externalize application.properties or another properties file

First of all, thank you.

Second, I’m a newbie with gradle configuration steps.

My application must have a property file outside of the .jar since it will need rewrite at runtime.

How can I configure my build.gradle to externalize my custom application.properties file when I generate the artifacts or run gradle assemble?