From 32ddeb927c163818af10e4b9685d944e622f5a86 Mon Sep 17 00:00:00 2001 From: Gugle Date: Mon, 4 Nov 2024 20:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=E5=B4=A9?= =?UTF-8?q?=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/build.gradle b/build.gradle index adaa089..eea6b41 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,4 @@ plugins { - id 'com.github.johnrengelman.shadow' version '7.0.0' id 'fabric-loom' version '1.6-SNAPSHOT' id 'maven-publish' } @@ -37,7 +36,7 @@ dependencies { // fabric-carpet modImplementation("curse.maven:carpet-349239:${project.carpet_core_version}") - implementation 'jep:jep:2.24' + include(implementation 'jep:jep:2.24') // xaeromap // modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" // modImplementation("curse.maven:xaeros-world-map-317780:5658242") @@ -77,31 +76,12 @@ java { withSourcesJar() } -shadowJar { - dependencies { - include(dependency 'jep:jep:2.24') - } - from("LICENSE") { - rename { "${it}_${project.archivesBaseName}" } - } -} - jar { from("LICENSE") { rename { "${it}_${project.archivesBaseName}" } } } -tasks.register('renameTask') { - doFirst { - delete file("./build/libs/${project.archivesBaseName}-${project.version}.jar") - println(file("./build/libs/${project.archivesBaseName}-${project.version}.jar")) - file("./build/libs/${project.archivesBaseName}-${project.version}-all.jar").renameTo(file("./build/libs/${project.archivesBaseName}-${project.version}.jar")) - } -} - -build.finalizedBy(shadowJar).finalizedBy(renameTask) - // configure the maven publication publishing { publications {