Skip to content

Commit

Permalink
尝试修复崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Nov 4, 2024
1 parent 201bcf5 commit 32ddeb9
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugins {
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
}
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 32ddeb9

Please sign in to comment.