[GRADLE-1359] Odd behavior of "gradle jar" if war plugin is present Created: 28/Jan/11 Updated: 04/Jan/13 Resolved: 16/Oct/11
|Reporter:||Peter Niederwieser||Assignee:||Adam Murdoch|
gradle clean build works as expected - only a war is generated. However, wouldn't it be nice if gradle jar still generated a jar? Currently it doesn't (because the war plugin disables the jar task).
The more general question is if Gradle shouldn't automatically "un-skip" tasks that are specified on the command line.
|Comment by Mathias Kalb [ 29/Jan/11 ]|
I think it is not good to automatically "un-skip" tasks.
1. There could be many reasons why a task is disabled.
2. If I have a multi project with JARs and WARs then I want to be able to call "gradle jar" and only the JAR files for the JAVA subprojects are created. The current behavior is not perfect, because also the WAR subprojects are compiled. But it is better than the creation of JAR files for all WAR subprojects.
Maybe a command line option can be used: "gradle --force jar" or "gradle --enable jar"