From ace2a412f27e8daecd0435b4905cf17430716eac Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 5 Mar 2021 02:20:31 +0800 Subject: Migrate to architectury tiny-remapper --- build.gradle | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 219c5c42..51a03448 100644 --- a/build.gradle +++ b/build.gradle @@ -69,7 +69,8 @@ dependencies { } // tinyfile management - implementation ('net.fabricmc:tiny-remapper:0.3.2') + compileOnly ('net.fabricmc:tiny-remapper:0.3.2-architectury.5') + shadow ('net.fabricmc:tiny-remapper:0.3.2-architectury.5') implementation ('net.fabricmc:tiny-mappings-parser:0.3.0+build.17') implementation 'net.fabricmc:access-widener:1.0.0' @@ -133,6 +134,14 @@ jar { manifest { attributes 'Implementation-Version': project.version + ' Build(' + build + ')' } + + classifier 'jar' +} + +shadowJar { + relocate "net.fabricmc.tinyremapper", "me.shedaniel.architectury.loom.shadowed.impl.net.fabricmc.tinyremapper" + configurations = [project.configurations.shadow] + classifier null } task sourcesJar(type: Jar, dependsOn: classes) { @@ -174,6 +183,7 @@ publishing { artifactId 'forgified-fabric-loom.gradle.plugin' from components.java + artifact shadowJar artifact sourcesJar } @@ -182,6 +192,7 @@ publishing { artifactId project.archivesBaseName from components.java + artifact shadowJar artifact sourcesJar artifact javadocJar } -- cgit