@@ -41,28 +41,105 @@ allprojects {
4141 if (BuildConfig .mavenLocalOverride) {
4242 mavenLocal()
4343 }
44- maven {
45- name = " FabricMC"
46- url = uri(" https://maven.fabricmc.net/" )
44+
45+ exclusiveContent {
46+ forRepository {
47+ maven(" https://maven.fabricmc.net/" )
48+ }
49+ filter {
50+ includeGroup(" net.fabricmc" )
51+ includeGroup(" net.fabricmc.fabric-api" )
52+ }
4753 }
48- maven(" https://repo.grim.ac/snapshots" ) { // Grim API
49- content {
54+
55+ exclusiveContent {
56+ forRepository {
57+ maven(" https://repo.grim.ac/snapshots" ) // Grim API & PacketEvents
58+ }
59+ filter {
5060 includeGroup(" ac.grim.grimac" )
5161 includeGroup(" com.github.retrooper" )
5262 }
5363 }
54- maven(" https://jitpack.io/" ) {
55- content {
56- excludeGroup(" ac.grim.grimac" )
57- excludeGroup(" com.github.retrooper" )
58- }
59- }// Conditional Mixin
60- maven(" https://repo.viaversion.com" ) // ViaVersion
61- maven(" https://nexus.scarsz.me/content/repositories/releases" ) // Configuralize
62- maven(" https://repo.opencollab.dev/maven-snapshots/" ) // Floodgate
63- maven(" https://repo.opencollab.dev/maven-releases/" ) // Cumulus (for Floodgate)
64- maven(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
65- mavenCentral() // FastUtil
64+
65+ exclusiveContent {
66+ forRepository {
67+ maven(" https://jitpack.io" ) { // Conditional Mixin
68+ mavenContent { releasesOnly() }
69+ }
70+ }
71+ filter {
72+ includeGroup(" com.github.Fallen-Breath.conditional-mixin" )
73+ }
74+ }
75+
76+ exclusiveContent {
77+ // The repository URL is determined by the project's name
78+ if (project.name == " mc1161" ) {
79+ // For the 1.16.1 subproject, the old snapshot is on the Grim repo
80+ forRepository {
81+ maven(" https://repo.grim.ac/snapshots" )
82+ }
83+ } else {
84+ // For all other subprojects, the releases are on Maven Central
85+ forRepository {
86+ mavenCentral()
87+ }
88+ }
89+ // This filter applies to whichever repository was chosen above
90+ filter {
91+ includeGroup(" me.lucko" )
92+ }
93+ }
94+
95+ exclusiveContent {
96+ forRepository {
97+ maven(" https://repo.viaversion.com" ) { // ViaVersion
98+ mavenContent { releasesOnly() }
99+ }
100+ }
101+ filter {
102+ includeGroup(" com.viaversion" )
103+ }
104+ }
105+
106+ exclusiveContent {
107+ forRepository {
108+ maven(" https://nexus.scarsz.me/content/repositories/releases" ) { // Configuralize
109+ mavenContent { releasesOnly() }
110+ }
111+ }
112+ filter {
113+ includeGroup(" github.scarsz" )
114+ }
115+ }
116+
117+ exclusiveContent {
118+ forRepository {
119+ maven(" https://repo.opencollab.dev/maven-releases/" ) { // Cumulus (for Floodgate)
120+ mavenContent { releasesOnly() }
121+ }
122+ }
123+ filter {
124+ includeGroup(" org.geysermc.api" )
125+ }
126+ }
127+
128+ exclusiveContent {
129+ forRepository {
130+ maven(" https://repo.opencollab.dev/maven-snapshots/" ) { // Floodgate
131+ mavenContent { snapshotsOnly() }
132+ }
133+ }
134+ filter {
135+ includeGroup(" org.geysermc.floodgate" )
136+ includeGroup(" org.geysermc.cumulus" )
137+ includeModule(" org.geysermc" , " common" )
138+ includeModule(" org.geysermc" , " geyser-parent" )
139+ }
140+ }
141+
142+ mavenCentral()
66143 }
67144
68145 loom {
0 commit comments