mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 21:47:42 -05:00
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:
@@ -78,7 +78,7 @@ public class RemapJarTask extends Jar {
|
||||
Set<File> classpathFiles = new LinkedHashSet<>(
|
||||
project.getConfigurations().getByName("compileClasspath").getFiles()
|
||||
);
|
||||
Path[] classpath = classpathFiles.stream().map(File::toPath).filter((p) -> !input.equals(p)).toArray(Path[]::new);
|
||||
Path[] classpath = classpathFiles.stream().map(File::toPath).filter((p) -> !input.equals(p) && Files.exists(p)).toArray(Path[]::new);
|
||||
|
||||
File mixinMapFile = mappingsProvider.MAPPINGS_MIXIN_EXPORT;
|
||||
Path mixinMapPath = mixinMapFile.toPath();
|
||||
|
||||
Reference in New Issue
Block a user