Exclude file from resource in Gradle
If you want to exclude one file from resource, you may use this snippet: sourceSets { main { resources { exclude '**/*.bak' } } }
Add new resource folder in Gradle
If you want to add new resource folder to Gradle build, use this snippet: sourceSets { main { resources { srcDir 'src/main/java' } } }
Gradle. Attach task to build lifecycle
It's easy. Just add to somewhere after your task definition: processTestResources.dependsOn recreateDatabase processTestResource - default task (phase of build lifecycle...
Gradle and dbmaintain
dbmaintain is plugin (best for my opinion) that allowes to safely migrate dbscheme. It has excellent support for Maven...
Gradle WAR building
To build WAR by Gradle system change java plugin to war plugin: apply plugin: 'war' After that execute gradle:
Gradle dependecies
To view dependencies hierarchy: gradle dependencies