Using Maven we are currently separating out classes from a WAR file using:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<packagingExcludes>WEB-INF/web.xml</packagingExcludes>
<attachClasses>true</attachClasses>
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
</configuration>
</plugin>
Is it possible to replicate this functionality in Gradle? The goal is to publish just the classes in a .jar alongside the primary war artifact:
ghc-templates-2.29-javadoc.jar 14-Jan-2014 15:19 112.43 KB
ghc-templates-2.29-sources.jar 14-Jan-2014 15:19 12.81 KB
ghc-templates-2.29.war 14-Jan-2014 15:19 6.05 MB
ghc-templates-2.29-classes.jar 14-Jan-2014 15:19 23.95 KB