I'm using 0.9-RC1

Definitely no build.gradle files missing.


Attached screenshot of files/folder structure.

settings.gradle is simply:

include "shared", "webapp:api"

main/root build.gradle:

subprojects {
    apply plugin: 'java'
    repositories {
       mavenCentral()
    }

    dependencies {
        testCompile 'junit:junit:4.7'
    }

    version = '1.0'

    jar {
        manifest.attributes provider: 'gradle'
    }
}




(the rest I just have "turned off" until I can get the simplest case working)

If the screenshot didn't come through, we can email direct etc

Roger

On Oct 24, 2010, at 5:22 PM, Adam Murdoch wrote:


On 25/10/2010, at 2:24 AM, Roger Studner wrote:

20-Multiproject builds doesn't seem to work, but i'd like to do this:

$project/webapp/api
$project/webapp/ui
$project/shared
$project/services

settings.gradle (in $project)

include 'shared', 'webapp:api', 'webapp:ui', 'services'

This seems to always result in this type of error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not load compiled classes for empty build file from cache.

It's complaining about loading up a compiled build script. What do the build scripts for the above projects look like? Any missing ones, empty ones, comments only, etc?

Which version of Gradle are you using?


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz


Reply via email to