aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-03-05 02:20:31 +0800
committershedaniel <daniel@shedaniel.me>2021-03-05 02:20:31 +0800
commitace2a412f27e8daecd0435b4905cf17430716eac (patch)
tree3496f94e796c2a57723742a4ca67b23ac562648b
parent11a665ed2e09010c82afe8097632a414b7d84b46 (diff)
downloadarchitectury-loom-ace2a412f27e8daecd0435b4905cf17430716eac.tar.gz
architectury-loom-ace2a412f27e8daecd0435b4905cf17430716eac.tar.bz2
architectury-loom-ace2a412f27e8daecd0435b4905cf17430716eac.zip
Migrate to architectury tiny-remapper
-rw-r--r--build.gradle13
1 files changed, 12 insertions, 1 deletions
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
}