Attempt to look in the root project for the loom version if required
This commit is contained in:
		
							parent
							
								
									60ec4c1fdb
								
							
						
					
					
						commit
						c9aaa68e5f
					
				
					 2 changed files with 5 additions and 3 deletions
				
			
		|  | @ -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()); | ||||
| 		} | ||||
| 		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 a new issue