Attempt to look in the root project for the loom version if required
parent
60ec4c1fdb
commit
c9aaa68e5f
|
@ -64,9 +64,7 @@ public class AbstractPlugin implements Plugin<Project> {
|
|||
public void apply(Project target) {
|
||||
this.project = target;
|
||||
|
||||
if(isRootProject(target)){
|
||||
project.getLogger().lifecycle("Fabric Loom: " + AbstractPlugin.class.getPackage().getImplementationVersion());
|
||||
}
|
||||
|
||||
// Apply default plugins
|
||||
project.apply(ImmutableMap.of("plugin", "java"));
|
||||
|
|
|
@ -157,6 +157,10 @@ public class LoomGradleExtension {
|
|||
return false;
|
||||
});
|
||||
|
||||
if(dependency == null && !AbstractPlugin.isRootProject(project)){
|
||||
return project.getRootProject().getExtensions().getByType(LoomGradleExtension.class).getLoomVersion();
|
||||
}
|
||||
|
||||
return dependency != null ? dependency.getVersion() : null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue