I have a database (.db-File) in my resources folder, which gets copied in every run of my Java code (I want to keep that file there because it is 'only' a university project and I need this for simplicity). That copying leads to the problem, that all changes made during runtime via code get lost every time, because the changes are only made to the copy in the build folder and not to the original.
How can I make Gradle to stop copying this file and force it to use the original file in the resources folder?
(Similar question, but without micronaut: Is it possible prevent copying of resources to build directory in Gradle project and directly use them from original location?)