mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
Fix: Local linking jars not loading, AW remapping on neoforge (#136)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import net.fabricmc.loom.task.RemapJarTask
|
||||
|
||||
plugins {
|
||||
id("floodgate-modded.publish-conventions")
|
||||
id("architectury-plugin")
|
||||
@@ -85,11 +83,17 @@ tasks {
|
||||
archiveVersion.set("")
|
||||
}
|
||||
|
||||
register("remapModrinthJar", RemapJarTask::class) {
|
||||
dependsOn(shadowJar)
|
||||
inputFile.set(shadowJar.get().archiveFile)
|
||||
archiveVersion.set(versionName(project))
|
||||
archiveClassifier.set("")
|
||||
register<Copy>("renameTask") {
|
||||
dependsOn(remapJar)
|
||||
|
||||
val modrinthFileName = "${versionName(project)}.jar"
|
||||
val libsFile = remapJar.get().destinationDirectory.get().asFile
|
||||
|
||||
from(remapJar.get().archiveFile)
|
||||
rename { modrinthFileName }
|
||||
into(libsFile)
|
||||
|
||||
outputs.file(libsFile.resolve(modrinthFileName))
|
||||
}
|
||||
|
||||
// Readme sync
|
||||
@@ -127,7 +131,7 @@ modrinth {
|
||||
|
||||
syncBodyFrom.set(rootProject.file("README.md").readText())
|
||||
|
||||
uploadFile.set(tasks.getByPath("remapModrinthJar"))
|
||||
uploadFile.set(tasks.getByPath("renameTask").outputs.files.first())
|
||||
gameVersions.add(libs.minecraft.get().version as String)
|
||||
gameVersions.add("1.21.1")
|
||||
failSilently.set(false)
|
||||
|
||||
@@ -23,7 +23,7 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
// We don't need these
|
||||
tasks.named("remapModrinthJar").configure {
|
||||
tasks.named("renameTask").configure {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user