Create a JAR containing classes and resources from webapp using Gradle
问题 I would like to create a jar from the contents of a WAR using gradle. The result I want is quite like what the archiveClasses = true setting of maven-war-plugin does. I understand that the gradle war plugin doesn't seem to do this (as per this stackoverflow question). Is there a way to do this manually? Say by manipulating the gradle jar task to collect the required parts from the WEB-INF folder? When I just use the default jar task it doesn't get the resources from the WEB-INF directory. The