I.e. is there any equivalent of archiveClasses = true setting of maven-war-plugin for War Graddle task?
Here's an incantation from Mark Vieira that works for me with Gradle 2.2.1:
war {
classpath = classpath - sourceSets.main.output
from (jar) {
into 'WEB-INF/lib'
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With