Fix issues involving projects with modules that contain no java classes (#135)

Dependencies on a compileClasspath configuration, and
encountering nonexistant paths in the classpath prevented remapping from
completing successfully.

Additionally, adds the output of remapJar as an artifact before the task
executes to resolve a conflict with the signing plugin
This commit is contained in:
zml
2019-10-22 12:29:25 -07:00
committed by Mark J
parent 13ae0ae263
commit ba426c04fb
3 changed files with 7 additions and 4 deletions

View File

@@ -196,7 +196,10 @@ public class LoomGradleExtension {
return recurseProjects((p) -> {
List<Configuration> configs = new ArrayList<>();
// check compile classpath first
configs.add(p.getConfigurations().getByName("compileClasspath"));
Configuration possibleCompileClasspath = p.getConfigurations().findByName("compileClasspath");
if (possibleCompileClasspath != null) {
configs.add(possibleCompileClasspath);
}
// failing that, buildscript
configs.addAll(p.getBuildscript().getConfigurations());