Fix local ivy layout not respecting classifiers. Fixes #407
parent
3318a15cc5
commit
210938d749
|
@ -266,4 +266,8 @@ task writeActionsTestMatrix() {
|
||||||
output.parentFile.mkdir()
|
output.parentFile.mkdir()
|
||||||
output.text = json
|
output.text = json
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.named('wrapper') {
|
||||||
|
distributionType = Wrapper.DistributionType.ALL
|
||||||
}
|
}
|
|
@ -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 New Issue