Worked patch on 1.20.1

This commit is contained in:
2024-09-29 13:48:50 +05:00
parent 74fd36eea9
commit f33ec41d0d
3 changed files with 12 additions and 10 deletions

View File

@@ -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