From 50cd2d06db9f7797fc0cc2c6828ba16d1e6866b2 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Tue, 5 Nov 2024 10:56:12 +0100 Subject: [PATCH] Remove obsolete -dev jars These no longer do anything useful in modern Fabric versions. --- build.gradle | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index e061e371ee..df6d01e215 100644 --- a/build.gradle +++ b/build.gradle @@ -149,18 +149,10 @@ test { useJUnitPlatform() } -task moveDevLibs(dependsOn: [remapJar, remapSourcesJar]) { - doLast { - def archivesName = project.base.archivesName.get() as String - ant.move(file:"${project.buildDir}/devlibs/${archivesName}-${version}-dev.jar", tofile:"${project.buildDir}/libs/${archivesName}-${version}-dev.jar") - ant.move(file:"${project.buildDir}/devlibs/${archivesName}-${version}-sources.jar", tofile:"${project.buildDir}/libs/${archivesName}-${version}-sources-dev.jar") - } -} - import org.kohsuke.github.GHReleaseBuilder import org.kohsuke.github.GitHub -task github(dependsOn: moveDevLibs) { +task github(dependsOn: build) { onlyIf { ENV.GITHUB_TOKEN } @@ -169,7 +161,6 @@ task github(dependsOn: moveDevLibs) { def github = GitHub.connectUsingOAuth(ENV.GITHUB_TOKEN as String) def repository = github.getRepository("Wurst-Imperium/Wurst-MCX2") def ghVersion = version.substring(0, version.indexOf("-")) - def archivesName = project.base.archivesName.get() as String def ghRelease = repository.getReleaseByTagName(ghVersion as String) if(ghRelease == null) { @@ -180,7 +171,5 @@ task github(dependsOn: moveDevLibs) { ghRelease.uploadAsset(remapJar.archiveFile.get().getAsFile(), "application/java-archive") ghRelease.uploadAsset(remapSourcesJar.archiveFile.get().getAsFile(), "application/java-archive") - ghRelease.uploadAsset(new File("${project.buildDir}/libs/${archivesName}-${version}-dev.jar"), "application/java-archive") - ghRelease.uploadAsset(new File("${project.buildDir}/libs/${archivesName}-${version}-sources-dev.jar"), "application/java-archive") } }