create a JAR containing the classes in the webapp using gradle
问题 I.e. is there any equivalent of archiveClasses = true setting of maven-war-plugin for War Graddle task? 回答1: 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' } } 来源: https://stackoverflow.com/questions/13359736/create-a-jar-containing-the-classes-in-the-webapp-using-gradle