diff options
author | LexManos <LexManos@gmail.com> | 2021-01-17 21:08:21 -0800 |
---|---|---|
committer | LexManos <LexManos@gmail.com> | 2021-01-17 21:08:21 -0800 |
commit | 4b39e3af8d3c0fe9f0ae03391715ff586bccf56d (patch) | |
tree | 6e17f665e5c0c8e5f6b5668eaccf97f2c6aeb71c /src/gradlecomp/java/net | |
parent | 28190035b0b547968a6f430200957dda8a0b846e (diff) | |
download | Artifactural-4b39e3af8d3c0fe9f0ae03391715ff586bccf56d.tar.gz Artifactural-4b39e3af8d3c0fe9f0ae03391715ff586bccf56d.tar.bz2 Artifactural-4b39e3af8d3c0fe9f0ae03391715ff586bccf56d.zip |
Allow missing metadata
Diffstat (limited to 'src/gradlecomp/java/net')
-rw-r--r-- | src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java b/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java index 87cd246..0970397 100644 --- a/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java +++ b/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java @@ -91,6 +91,10 @@ public class GradleRepositoryAdapter extends AbstractArtifactRepository implemen DefaultMavenLocalArtifactRepository maven = (DefaultMavenLocalArtifactRepository)factory.createMavenLocalRepository(); // We use maven local because it bypasses the caching and coping to .m2 maven.setUrl(local); maven.setName(name); + maven.metadataSources(m -> { + m.mavenPom(); + m.artifact(); + }); GradleRepositoryAdapter repo; @@ -139,7 +143,7 @@ public class GradleRepositoryAdapter extends AbstractArtifactRepository implemen public ConfiguredModuleComponentRepository createResolver() { MavenResolver resolver = (MavenResolver)local.createResolver(); - GeneratingFileResourceRepository repo = new GeneratingFileResourceRepository(); + GeneratingFileResourceRepository repo = new GeneratingFileResourceRepository(); ReflectionUtils.alter(resolver, "repository", prev -> repo); // ExternalResourceResolver.repository //ReflectionUtils.alter(resolver, "metadataSources", ); //ExternalResourceResolver.metadataSources We need to fix these from returning 'missing' // MavenResolver -> MavenMetadataLoader -> FileCacheAwareExternalResourceAccessor -> DefaultCacheAwareExternalResourceAccessor |