[GRADLE-667] War plugin version handling regressions from 0.7 Created: 29/Sep/09 Updated: 04/Jan/13 Resolved: 24/Nov/10
|Reporter:||Spencer Allain||Assignee:||Adam Murdoch|
There are two main regressions that I've identified when setting the version explicitly to the empty string, that worked as expected in 0.7, but do not in 0.8:
jar file => project1.jar (this is still the same as 0.7, which is good)
war file => project2.war (this is still the same as 0.7, which is good)
project2.war contains => project1-.jar (it used to contain project1.jar in gradle 0.7, without the unexpected "-")
Explicitly setting version = null ... or never setting it does result in consistent behavior, although it means everything is
Appendix and classifier can still both be set to the empty string and they get ignored as expected, but version is now behaving differently.
|Comment by Spencer Allain [ 29/Sep/09 ]|
There is a workaround for the version number being lost on jar files generated with the war plugin and re-enabling the jar creation.
jar.enabled = true
The extra "-" included within the war file for projects without a non-empty version number seems to be unavoidable right now.
|Comment by Adam Murdoch [ 02/Oct/09 ]|
This is fixed in trunk now