mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -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:
@@ -339,8 +339,8 @@ public class AbstractPlugin implements Plugin<Project> {
|
||||
extension.addUnmappedMod(jarTask.getArchivePath().toPath());
|
||||
remapJarTask.getAddNestedDependencies().set(true);
|
||||
|
||||
remapJarTask.doLast(task -> project1.getArtifacts().add("archives", remapJarTask.getArchivePath()));
|
||||
remapJarTask.dependsOn(project1.getTasks().getByName("jar"));
|
||||
project1.getArtifacts().add("archives", remapJarTask);
|
||||
remapJarTask.dependsOn(jarTask);
|
||||
project1.getTasks().getByName("build").dependsOn(remapJarTask);
|
||||
|
||||
Map<Project, Set<Task>> taskMap = project.getAllTasks(true);
|
||||
|
||||
Reference in New Issue
Block a user