Details
-
Type:
Bug
-
Status:
Open
-
Resolution: Unresolved
-
Affects Version/s: 1.0-milestone-5
-
Fix Version/s: None
Description
Problem:
It is not possible to build an ear with a war using the ear plugin with project dependencies.
Expected behaviour:
The expected bahaviour would be, that the "war" is placed inside the ear, but instead the content of the "war" project is packaged as "jar" and placed into the ear. It seems that the wrong dependent tasks are executed.
Reproduction:
- Open the Sample project folder "samples\ear\earWithWar" in the gradle distribution
- execute the command "gradle ear"
- With milestone 4 the task ":war:war" is executed (correct behaviour)
- With milestone 5 the task ":war:jar" is executed (incorrect behaviour)
See build output below.
#########################################
- ear - milestone 4
#########################################
C:\Development\Tools\gradle-1.0-milestone-5\samples\ear\earWithWar>gradle ear
:war:compileJava
:war:processResources UP-TO-DATE
:war:classes
:war:war
:ear
BUILD SUCCESSFUL
Total time: 6.937 secs
#########################################
- ear - milestone 5
#########################################
C:\Development\Tools\gradle-1.0-milestone-5\samples\ear\earWithWar>gradle ear
:war:compileJava
Download http://repo1.maven.org/maven2/log4j/log4j/1.2.15/log4j-1.2.15.pom
> Building > :war:compileJava > Resolve dependencies ':war:compile' > 17 KB/17 K
Download http://repo1.maven.org/maven2/log4j/log4j/1.2.15/log4j-1.2.15.jar
:war:processResources UP-TO-DATE
:war:classes
:war:jar
:ear
BUILD SUCCESSFUL
Total time: 10.976 secs
I'm wondering (from a quick glance) whether this might be related to the fix that was made for
GRADLE-687andGRADLE-1269GRADLE-687andGRADLE-1269