Fix local ivy layout not respecting classifiers. Fixes #407
This commit is contained in:
		
							parent
							
								
									3318a15cc5
								
							
						
					
					
						commit
						210938d749
					
				
					 4 changed files with 8 additions and 4 deletions
				
			
		|  | @ -267,3 +267,7 @@ task writeActionsTestMatrix() { | ||||||
| 		output.text = json | 		output.text = json | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | tasks.named('wrapper') { | ||||||
|  | 	distributionType = Wrapper.DistributionType.ALL | ||||||
|  | } | ||||||
							
								
								
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							|  | @ -1,5 +1,5 @@ | ||||||
| distributionBase=GRADLE_USER_HOME | distributionBase=GRADLE_USER_HOME | ||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.1-bin.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.1-all.zip | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||||
|  |  | ||||||
|  | @ -81,7 +81,7 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> { | ||||||
| 		repositories.ivy(repo -> { | 		repositories.ivy(repo -> { | ||||||
| 			repo.setUrl(cache.getUserCache()); | 			repo.setUrl(cache.getUserCache()); | ||||||
| 			repo.patternLayout(layout -> { | 			repo.patternLayout(layout -> { | ||||||
| 				layout.artifact("[revision]/[artifact]-[revision](.[ext])"); | 				layout.artifact("[revision]/[artifact]-[revision](-[classifier])(.[ext])"); | ||||||
| 			}); | 			}); | ||||||
| 			repo.metadataSources(IvyArtifactRepository.MetadataSources::artifact); | 			repo.metadataSources(IvyArtifactRepository.MetadataSources::artifact); | ||||||
| 		}); | 		}); | ||||||
|  | @ -90,7 +90,7 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> { | ||||||
| 		repositories.ivy(repo -> { | 		repositories.ivy(repo -> { | ||||||
| 			repo.setUrl(cache.getRootPersistentCache()); | 			repo.setUrl(cache.getRootPersistentCache()); | ||||||
| 			repo.patternLayout(layout -> { | 			repo.patternLayout(layout -> { | ||||||
| 				layout.artifact("[revision]/[artifact]-[revision](.[ext])"); | 				layout.artifact("[revision]/[artifact]-[revision](-[classifier])(.[ext])"); | ||||||
| 			}); | 			}); | ||||||
| 			repo.metadataSources(IvyArtifactRepository.MetadataSources::artifact); | 			repo.metadataSources(IvyArtifactRepository.MetadataSources::artifact); | ||||||
| 		}); | 		}); | ||||||
|  |  | ||||||
|  | @ -29,7 +29,7 @@ import org.gradle.testkit.runner.GradleRunner | ||||||
| 
 | 
 | ||||||
| trait ProjectTestTrait { | trait ProjectTestTrait { | ||||||
| 	final static String DEFAULT_GRADLE = "7.0.1" | 	final static String DEFAULT_GRADLE = "7.0.1" | ||||||
| 	final static String PRE_RELEASE_GRADLE = "7.1-20210520220048+0000" | 	final static String PRE_RELEASE_GRADLE = "7.2-20210527220045+0000" | ||||||
| 
 | 
 | ||||||
| 	static File gradleHome = File.createTempDir() | 	static File gradleHome = File.createTempDir() | ||||||
| 	File testProjectDir = File.createTempDir() | 	File testProjectDir = File.createTempDir() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue