Add libs to jar file
This commit is contained in:
parent
b3e2284ac6
commit
fd04d1827c
11
build.gradle
11
build.gradle
|
@ -29,6 +29,10 @@ repositories {
|
||||||
// for more information about repositories.
|
// for more information about repositories.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
includedJars
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// To change the versions see the gradle.properties file
|
// To change the versions see the gradle.properties file
|
||||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||||
|
@ -39,7 +43,9 @@ dependencies {
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
|
|
||||||
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.3'
|
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'
|
implementation group: 'org.json', name: 'json', version: '20240303'
|
||||||
|
includedJars group: 'org.json', name: 'json', version: '20240303'
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
@ -79,11 +85,14 @@ java {
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
from("LICENSE") {
|
from("LICENSE") {
|
||||||
rename { "${it}_${project.archivesBaseName}" }
|
rename { "${it}_${project.archivesBaseName}" }
|
||||||
}
|
}
|
||||||
|
from configurations.includedJars.collect {
|
||||||
|
it.isDirectory() ? it : zipTree(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// configure the maven publication
|
// configure the maven publication
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
|
|
@ -6,7 +6,7 @@ minecraft_version=1.21.1
|
||||||
yarn_mappings=1.21.1+build.3
|
yarn_mappings=1.21.1+build.3
|
||||||
loader_version=0.16.5
|
loader_version=0.16.5
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0-SNAPSHOT
|
mod_version=1.0.0
|
||||||
maven_group=ru.bitheaven
|
maven_group=ru.bitheaven
|
||||||
archives_base_name=donpayinteg
|
archives_base_name=donpayinteg
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "donpayinteg",
|
"id": "donpayinteg",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"name": "DonatePay Integration",
|
"name": "DonatePay Integration",
|
||||||
"description": "Mod add integration with donate system",
|
"description": "Mod add integration with DonatePay system for exec custom commands for donates.",
|
||||||
"authors": [
|
"authors": [
|
||||||
"BitHeaven"
|
"BitHeaven"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue