Worked patch on 1.20.1
This commit is contained in:
12
build.gradle
12
build.gradle
@@ -42,8 +42,8 @@ dependencies {
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
|
||||
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.3'
|
||||
includedJars group: 'org.yaml', name: 'snakeyaml', version: '2.3'
|
||||
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.0'
|
||||
includedJars group: 'org.yaml', name: 'snakeyaml', version: '2.0'
|
||||
implementation group: 'org.json', name: 'json', version: '20240303'
|
||||
includedJars group: 'org.json', name: 'json', version: '20240303'
|
||||
}
|
||||
@@ -85,12 +85,14 @@ java {
|
||||
}
|
||||
|
||||
jar {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from("LICENSE") {
|
||||
rename { "${it}_${project.archivesBaseName}" }
|
||||
}
|
||||
from configurations.includedJars.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from {
|
||||
configurations.includedJars.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
// configure the maven publication
|
||||
|
||||
Reference in New Issue
Block a user