mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 21:47:42 -05:00
Only generate the run configs on the root project
This commit is contained in:
@@ -65,7 +65,9 @@ public class AbstractPlugin implements Plugin<Project> {
|
||||
public void apply(Project target) {
|
||||
this.project = target;
|
||||
|
||||
project.getLogger().lifecycle("Fabric Loom: " + AbstractPlugin.class.getPackage().getImplementationVersion());
|
||||
if(isRootProject(target)){
|
||||
project.getLogger().lifecycle("Fabric Loom: " + AbstractPlugin.class.getPackage().getImplementationVersion());
|
||||
}
|
||||
|
||||
// Apply default plugins
|
||||
project.apply(ImmutableMap.of("plugin", "java"));
|
||||
@@ -281,4 +283,8 @@ public class AbstractPlugin implements Plugin<Project> {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static boolean isRootProject(Project project){
|
||||
return project.getRootProject() == project;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user