And as for clean, you have to understand how clean works... basically by default it simply cleans the build dir for the current project, which makes complete sense. However, installWildFly writes to a directory that is outside of that project's build dir - it writes to the root project's build dir. In the future, for each and every task, Gradle also defines a "virtual" task that follows the naming clean<TaskName>. For a task named installWildFly e.g., Gradle will create a task named cleanInstallWildFly. The intent of this virtual task is to clean all of the tasks defined outputs. So I just added this to hibernate-orm-modules:
clean.dependsOn cleanInstallWildFly
|