Not to let the war plugin disables the default JAR archive generation of the Java plugin


(Rice Yeh) #1

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.


(Rice Yeh) #2

I try the following code and it works

assemble.dependsOn = []
  assemble.dependsOn(jar)