add missed craftweaker exclusion and wrap exclusions in a try/catch block
@@ -359,7 +359,7 @@ repositories {
whenObjectAdded {//ForgeGradle adds these in an afterEvaluate, so we need to catch them as they're added and exclude mod artifacts/groups
if (it instanceof MavenArtifactRepository){
if (it.url.toString() == 'https://files.minecraftforge.net/maven/' || it.url.toString() == 'https://libraries.minecraft.net/' || it.url.toString() == 'https://repo.maven.apache.org/maven2/') {
- println("Adding exclusions to ${it.url}")
+ try {
it.content {
excludeGroup 'curse.maven'
excludeGroup 'mezz.jei'
@@ -371,6 +371,11 @@ repositories {
excludeGroup 'team.chisel.ctm'
excludeGroup 'appeng'
excludeGroup 'org.squiddev'
+ excludeGroup 'com.blamejared.crafttweaker'
+ }
+ println("Adding exclusions to ${it.url}")
+ } catch (Exception ignored) {
+ //oh well
}
}
}
