# HG changeset patch # Parent 3e36f7cfd5c3539ebb353b690ffddb63ac04d27a Trying faster build diff --git a/build.gradle b/build.gradle --- a/build.gradle +++ b/build.gradle @@ -807,7 +807,8 @@ if (test && proj.sourceSets.hasProperty('shims')) { dir = new File(proj.sourceSets.shims.output.classesDir, proj.ext.moduleName); } else { - dir = new File(proj.sourceSets.main.output.classesDir, proj.ext.moduleName); + //dir = new File(proj.sourceSets.main.output.classesDir, proj.ext.moduleName); + dir = new File("${rootProject.buildDir}/working", proj.ext.moduleName); } if (mp == null) { mp = dir.path @@ -871,7 +872,8 @@ p.ext.moduleChain = moduleChain if (p.hasProperty("moduleName")) { - p.ext.moduleDir = new File (p.sourceSets.main.output.classesDir, "${p.moduleName}") + //p.ext.moduleDir = new File (p.sourceSets.main.output.classesDir, "${p.moduleName}") + p.ext.moduleDir = new File ("${rootProject.buildDir}/working", "${p.moduleName}") } def mpa = computeModulePathArgs(p.name, moduleChain, false) @@ -3435,8 +3437,11 @@ // no jars needed for modules project.jar.enabled = false + project.sourceSets.main.output.classesDir = "${rootProject.buildDir}/working" + // and redirect the resources into the module project.processResources.destinationDir = project.moduleDir + project.processResources.destinationDir = new File("${rootProject.buildDir}/working/${project.moduleName}") } // Add in the -Xlint options