Skip to content

Commit

Permalink
got environment annotation remapping working on fabric side
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 10, 2024
1 parent 75f5dd3 commit 9646ec7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import xyz.wagyourtail.unimined.expect.task.ExpectPlatformJar

plugins {
id "fabric-loom"
id 'xyz.wagyourtail.unimined.expect-platform' version '1.0.5'
Expand Down Expand Up @@ -107,6 +109,26 @@ sourcesJar {
from(project(':antimatter-common').sourceSets.main.allSource)
}

tasks.create("platformJar", ExpectPlatformJar){
platformName = "fabric"
inputFiles = sourceSets.main.output
archiveClassifier.set "dev"
remap = [
"xyz/wagyourtail/unimined/expect/annotation/Environment": "net/fabricmc/api/Environment",
"xyz/wagyourtail/unimined/expect/annotation/Environment\$EnvType": "net/fabricmc/api/EnvType",
]
}

remapJar {
inputFile.set platformJar.archiveFile
dependsOn platformJar
archiveClassifier.set null
}

jar{
archiveClassifier.set "dev-unmapped"
}

publishing {
publications {
mavenJava(org.gradle.api.publish.maven.MavenPublication) {
Expand Down

0 comments on commit 9646ec7

Please sign in to comment.