My project uses jetty plugin for testing only. The
apply plugin: 'jetty'
will call
apply plugin: 'war'
and the war plugin disables the default JAR archive generation of the Java plugin and adds a default WAR archive task. How do I let the war plugin not to disable the default JAR archive generation of the Java plugin. That is, I still want the project’s artifact be the jar file instead of the war file.