Fix local ivy layout not respecting classifiers. Fixes #407
parent
3318a15cc5
commit
210938d749
|
@ -267,3 +267,7 @@ task writeActionsTestMatrix() {
|
|||
output.text = json
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('wrapper') {
|
||||
distributionType = Wrapper.DistributionType.ALL
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
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
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
@ -81,7 +81,7 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> {
|
|||
repositories.ivy(repo -> {
|
||||
repo.setUrl(cache.getUserCache());
|
||||
repo.patternLayout(layout -> {
|
||||
layout.artifact("[revision]/[artifact]-[revision](.[ext])");
|
||||
layout.artifact("[revision]/[artifact]-[revision](-[classifier])(.[ext])");
|
||||
});
|
||||
repo.metadataSources(IvyArtifactRepository.MetadataSources::artifact);
|
||||
});
|
||||
|
@ -90,7 +90,7 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> {
|
|||
repositories.ivy(repo -> {
|
||||
repo.setUrl(cache.getRootPersistentCache());
|
||||
repo.patternLayout(layout -> {
|
||||
layout.artifact("[revision]/[artifact]-[revision](.[ext])");
|
||||
layout.artifact("[revision]/[artifact]-[revision](-[classifier])(.[ext])");
|
||||
});
|
||||
repo.metadataSources(IvyArtifactRepository.MetadataSources::artifact);
|
||||
});
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.gradle.testkit.runner.GradleRunner
|
|||
|
||||
trait ProjectTestTrait {
|
||||
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()
|
||||
File testProjectDir = File.createTempDir()
|
||||
|
|
Loading…
Reference in New Issue