Ignore gradle metadata in Mojang's maven repo.
This commit is contained in:
		
							parent
							
								
									2c5baf95cb
								
							
						
					
					
						commit
						9e46f0d389
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -70,6 +70,13 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> { | |||
| 		repositories.maven(repo -> { | ||||
| 			repo.setName("Mojang"); | ||||
| 			repo.setUrl(MirrorUtil.getLibrariesBase(target)); | ||||
| 
 | ||||
| 			// Don't use the gradle module metadata. It has unintended side effects. | ||||
| 			repo.metadataSources(sources -> { | ||||
| 				sources.mavenPom(); | ||||
| 				sources.artifact(); | ||||
| 				sources.ignoreGradleMetadataRedirection(); | ||||
| 			}); | ||||
| 		}); | ||||
| 		repositories.mavenCentral(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue