From 3611068e004e127dd54ccb0c5b63657e7696580c Mon Sep 17 00:00:00 2001 From: PepperBell <44146161+PepperCode1@users.noreply.github.com> Date: Tue, 2 Nov 2021 19:30:02 -0700 Subject: [PATCH] Switch to Parchment mappings --- build.gradle | 9 ++++++--- gradle.properties | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 3c74bd529..8d8ea11ba 100644 --- a/build.gradle +++ b/build.gradle @@ -3,11 +3,13 @@ buildscript { maven { url = 'https://maven.minecraftforge.net' } mavenCentral() jcenter() - maven { url = 'https://repo.spongepowered.org/repository/maven-public/' } + maven { url = 'https://repo.spongepowered.org/repository/maven-public' } + maven { url = 'https://maven.parchmentmc.org' } } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: "${forgegradle_version}", changing: true - classpath group: 'org.spongepowered', name: 'mixingradle', version: "${mixingradle_version}" + classpath "org.spongepowered:mixingradle:${mixingradle_version}" + classpath "org.parchmentmc:librarian:${librarian_version}" } } plugins { @@ -19,6 +21,7 @@ apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'maven-publish' apply plugin: 'org.spongepowered.mixin' +apply plugin: 'org.parchmentmc.librarian.forgegradle' boolean dev = System.getenv('RELEASE') == null || System.getenv('RELEASE').equals('false'); @@ -32,7 +35,7 @@ archivesBaseName = 'create' java.toolchain.languageVersion = JavaLanguageVersion.of(16) minecraft { - mappings channel: 'official', version: "${minecraft_version}" + mappings channel: 'parchment', version: "${parchment_version}-${minecraft_version}" accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') runs { diff --git a/gradle.properties b/gradle.properties index a710b4b09..7cc576625 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,8 +11,10 @@ forge_version = 37.0.104 # build dependency versions forgegradle_version = 5.1.+ mixingradle_version = 0.7-SNAPSHOT +librarian_version = 1.+ shadow_version = 7.1.0 cursegradle_version = 1.4.0 +parchment_version = 2021.10.31 # dependency versions registrate_version = MC1.17.1-1.0.13