Add libs to jar file

This commit is contained in:
2024-09-26 01:59:23 +05:00
parent b3e2284ac6
commit fd04d1827c
3 changed files with 12 additions and 3 deletions

View File

@@ -29,6 +29,10 @@ repositories {
// for more information about repositories.
}
configurations {
includedJars
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
@@ -39,7 +43,9 @@ dependencies {
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.json', name: 'json', version: '20240303'
includedJars group: 'org.json', name: 'json', version: '20240303'
}
processResources {
@@ -79,11 +85,14 @@ java {
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
from configurations.includedJars.collect {
it.isDirectory() ? it : zipTree(it)
}
}
// configure the maven publication
publishing {
publications {