Try switching to a regex and exclude in the repo that loom adds

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-06-14 02:16:12 +08:00
parent 6d815fc4d8
commit 1ea5dbb1e8
2 changed files with 6 additions and 2 deletions

View File

@@ -79,6 +79,9 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> {
repo.setName("Forge");
repo.setUrl("https://maven.minecraftforge.net/");
repo.content(descriptor -> {
descriptor.excludeGroupByRegex("org\\.eclipse\\.?.*");
});
repo.metadataSources(sources -> {
sources.mavenPom();
sources.ignoreGradleMetadataRedirection();