Am new to Gradle, so bear with me if it sounds dumb.
Am in the process of moving an existing maven project to gradle for various reasons. Now my maven projects creates some files in the target folder when the java application is run, these files we usually exclude from clean phase by configuring clean-plugin of maven, How to do something similar in Gradle. i.e, exclude specific directories from clean task (files, folders that were created by the application itself and not by any Gradle task).