Using Gradle 1.1, this works for me:
apply plugin: 'war'
sourceSets {
main {
resources {
exclude '**/test/*'
exclude 'certs/test'
}
}
}
More Related Contents:
- Using Gradle to find dependency tree
- Using Gradle to build a jar with dependencies
- JavaFX 11 : Create a jar file with Gradle
- Android Studio: Where is the Compiler Error Output Window?
- How to pass arguments from command line to Gradle
- Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes?
- How to use my own Android.mk file with Android Studio
- gradlew: Permission Denied
- How to download javadocs and sources for jar using Gradle 2.0?
- Extract common methods from Gradle build script
- Generating JPA2 Metamodel from a Gradle build script
- How can the gradle plugin repository be changed?
- Add resources and config files to your JAR using Gradle
- variantOutput.getPackageApplication() is obsolete
- Gradle store on local file system
- Extremely long build with Gradle (Android Studio)
- Difference between using gradlew and gradle
- Where to put Gradle configuration (i.e. credentials) that should not be committed?
- Gradle build only one module
- How to stop Gradle task execution in Android Studio?
- Is there a way to split/factor out common parts of Gradle build
- How to use exec() output in gradle
- Gradle build null console object
- How to run copy task with android studio into assets folder
- Gradle, “sourceCompatibility” vs “targetCompatibility”?
- In Gradle, is there a better way to get Environment Variables?
- Gradle Could not create service of type InitScriptHandler using BuildScopeServices.createInitScriptHandler()
- Add commons-io dependency to gradle project in Android Studio
- Gradle task should not execute automatically
- Where does Gradle store downloaded jars on the local file system