Fix OML not being in IDE's scopes
This commit is contained in:
		
							parent
							
								
									fb94d092ad
								
							
						
					
					
						commit
						5296c98606
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -169,10 +169,12 @@ public class AbstractPlugin implements Plugin<Project> { | |||
| 		ideaModule.getModule().setDownloadSources(true); | ||||
| 		ideaModule.getModule().setInheritOutputDirs(true); | ||||
| 		ideaModule.getModule().getScopes().get("COMPILE").get("plus").add(project.getConfigurations().getByName(Constants.CONFIG_MC_DEPENDENCIES)); | ||||
| 		ideaModule.getModule().getScopes().get("COMPILE").get("plus").add(project.getConfigurations().getByName(Constants.COMPILE_MODS)); | ||||
| 
 | ||||
| 		// ECLIPSE | ||||
| 		EclipseModel eclipseModule = (EclipseModel) project.getExtensions().getByName("eclipse"); | ||||
| 		eclipseModule.getClasspath().getPlusConfigurations().add(project.getConfigurations().getByName(Constants.CONFIG_MC_DEPENDENCIES)); | ||||
| 		eclipseModule.getClasspath().getPlusConfigurations().add(project.getConfigurations().getByName(Constants.COMPILE_MODS)); | ||||
| 	} | ||||
| 
 | ||||
| 	/** | ||||
|  |  | |||
|  | @ -50,7 +50,7 @@ public class ProcessModsTask extends DefaultTask { | |||
| 		Configuration configuration = getProject().getConfigurations().getByName(Constants.COMPILE_MODS); | ||||
| 		List<File> mods = new ArrayList<>(); | ||||
| 		for (ResolvedArtifact artifact : configuration.getResolvedConfiguration().getResolvedArtifacts()) { | ||||
| 			getProject().getLogger().lifecycle(":found mod to mix:" + artifact.getFile().getName()); | ||||
| 			//getProject().getLogger().lifecycle(":found mod to mix:" + artifact.getFile().getName()); | ||||
| 			mods.add(artifact.getFile()); | ||||
| 		} | ||||
| 		if (Constants.MINECRAFT_FINAL_JAR.get(extension).exists()) { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue