Skip to content

Commit ef52f82

Browse files
committed
declare repos in the project buildscript, not settings
The Modrinth maven was previously being ignored. I forgot to set 'repositoriesMode', but it turns out this is incompatible with Loom. You can only declare repos in the project *or* settings, not both, and Loom adds the fabric maven to the project repos.
1 parent 651f06a commit ef52f82

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ val compatibleVersions: String by project
1111

1212
version = "$modVersion+$branchName"
1313

14+
repositories {
15+
exclusiveContent {
16+
// Modrinth Maven - see: https://support.modrinth.com/en/articles/8801191-modrinth-maven
17+
// Mods may be pulled from here will this format: "maven.modrinth:<slug>:<version>"
18+
forRepositories(maven("https://api.modrinth.com/maven")).filter {
19+
includeGroup("maven.modrinth")
20+
}
21+
}
22+
}
23+
1424
dependencies {
1525
minecraft(libs.minecraft)
1626
api(libs.bundles.fabric)

settings.gradle.kts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,3 @@ pluginManagement {
77
gradlePluginPortal()
88
}
99
}
10-
11-
dependencyResolutionManagement {
12-
repositories {
13-
// Modrinth Maven - see: https://support.modrinth.com/en/articles/8801191-modrinth-maven
14-
// Mods may be pulled from here will this format: "maven.modrinth:<slug>:<version>"
15-
exclusiveContent {
16-
forRepositories(maven("https://api.modrinth.com/maven")).filter {
17-
includeGroup("maven.modrinth")
18-
}
19-
}
20-
}
21-
}

0 commit comments

Comments
 (0)