Russel Winder wrote:
On Sat, 2009-08-15 at 12:49 -0400, Steve Appling wrote:
I'm guessing that you are missing a version assignment for the subproject.
For every subproject, assign a group and version. See the example in java
multiproject.
Hummm... I had group and version set in the allprojects closure on the
grounds it is the same for all the subprojects. Clearly this is an
assumption too far for Gradle :-(
I am going to get grumpy . . .
Having to set the group and version separately for each project seems
fundamentally wrong when there is an allprojects and subprojects
initialization.
You don't have to do this. You don't even have to set the group or
version at all if you don't want to.
Something's going wrong, so that the version is ending up as null. One
possibility is that your build script is unintentionally setting it to
null. Can you double check this, then we can dig a bit deeper and see if
it is going missing somewhere inside Gradle.
I have just checked in a change to make Gradle more forgiving if the
group or version is set to null.
Adam