Add maven repo for customised ForgeGradle
Add exclusions to FG added repos
@@ -4,6 +4,10 @@ import mekanism.tasks.MergeJars
buildscript {
repositories {
+ maven {
+ name 'thiakil'
+ url "https://maven.thiakil.com"
+ }
maven {
name "forge"
url "https://files.minecraftforge.net/maven"
@@ -295,7 +299,7 @@ repositories {
includeGroup 'net.minecraft'//custom mappings
}
}
- maven {
+ /*maven { Redundant - added by ForgeGradle
name 'ForgeFS'
url 'https://files.minecraftforge.net/maven'
content {
@@ -303,7 +307,7 @@ repositories {
includeGroup 'de.oceanlabs.mcp'
includeGroup 'cpw.mods'
}
- }
+ }*/
maven {
name 'prog'
url 'https://dvs1.progwml6.com/files/maven'
@@ -351,6 +355,26 @@ repositories {
includeGroup 'appeng'
}
}
+
+ 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}")
+ it.content {
+ excludeGroup 'curse.maven'
+ excludeGroup 'mezz.jei'
+ excludeGroupByRegex 'com\\.enderio.*'
+ excludeGroupByRegex 'com\\.enderzoo.*'
+ excludeGroupByRegex 'com\\.tterrag.*'
+ excludeGroupByRegex 'tterrag.*'
+ excludeGroup 'mcjty.theoneprobe'
+ excludeGroup 'team.chisel.ctm'
+ excludeGroup 'appeng'
+ excludeGroup 'org.squiddev'
+ }
+ }
+ }
+ }
}
test {
