UploadArchives not working with multi-level project

Hi, I’m having problems with the uploadArchives task when I use a project hierarchy with 3 levels.
My project looks like this:


and I define the uploadArchives task for subprojects like this:

subprojects {
    uploadArchives {
        repositories {
            mavenDeployer {
                repository(url: "file:///var/maven_repo/repo/")

For projects that are direct descendents of the root project (e.g. /a and /b) it works fine, but for projects one level deeper (e.g. /c/d and /c/e) it fails with an error like this:

Execution failed for task ':c/d:uploadArchives'.
> Could not publish configuration 'archives'
   > Unable to initialize POM pom-default.xml: Failed to validate POM for project my_project:c/d at /home/myuser/path/to/project/c/d/build/poms/pom-default.xml

The pom-default.xml mentioned does exist, and it does seem to be valid as far as I can see.

Any ideas what’s up?


I upgraded from gradle 2.4 to 2.4 and that seems to have fixed it :smile: