diff --git a/mod/build.gradle b/mod/build.gradle index c96564f..4d6cdd8 100644 --- a/mod/build.gradle +++ b/mod/build.gradle @@ -19,7 +19,10 @@ subprojects { dependencies { minecraft "com.mojang:minecraft:${rootProject.minecraft_version}" - mappings loom.officialMojangMappings() + mappings loom.layered() { + officialMojangMappings() + parchment("org.parchmentmc.data:parchment-${project.minecraft_version}:${project.parchment_version}@zip") + } } } @@ -33,11 +36,10 @@ allprojects { group = rootProject.maven_group repositories { - // Add repositories to retrieve artifacts from in here. - // You should only use this when depending on other mods because - // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. - // See https://docs.gradle.org/current/userguide/declaring_repositories.html - // for more information about repositories. + maven { + name "ParchmentMC" + url "https://maven.parchmentmc.org" + } maven { url "https://api.modrinth.com/maven" content { diff --git a/mod/gradle.properties b/mod/gradle.properties index 8d187ea..946c881 100644 --- a/mod/gradle.properties +++ b/mod/gradle.properties @@ -12,6 +12,8 @@ mod_source_url=https://github.com/CivPlatform/map-sync mod_issues_url=https://github.com/CivPlatform/map-sync/issues minecraft_version=1.18.2 +# https://parchmentmc.org/docs/getting-started +parchment_version=2022.11.06 enabled_platforms=fabric,forge # https://fabricmc.net/versions.html