2023-11-12 12:30:11 +02:00
|
|
|
archivesBaseName = "${mod_name.replace(" ", "")}-Common-${minecraft_version}"
|
2022-05-12 00:18:53 +02:00
|
|
|
|
|
|
|
dependencies {
|
2024-10-18 12:30:15 +02:00
|
|
|
stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
2024-11-25 14:06:59 +02:00
|
|
|
stupidRemapArch("dev.ftb.mods:ftb-ranks:${ftb_ranks}")
|
2025-01-14 15:53:58 +02:00
|
|
|
|
|
|
|
stupidRemapArch("me.shedaniel.cloth:cloth-config:${cloth_config}")
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
|
2022-06-10 18:58:26 +02:00
|
|
|
shadowJar {
|
2023-11-12 12:30:11 +02:00
|
|
|
from sourceSets.main.output
|
2024-05-01 14:11:52 +02:00
|
|
|
configurations = [project.configurations.shade]
|
2022-06-10 18:58:26 +02:00
|
|
|
|
2024-05-01 14:11:52 +02:00
|
|
|
dependencies {
|
2024-05-01 18:28:52 +02:00
|
|
|
exclude(dependency('com.google.code.gson:.*'))
|
|
|
|
|
2023-04-02 17:01:02 +02:00
|
|
|
relocate 'me.hypherionmc.moonconfig', 'shadow.hypherionmc.moonconfig'
|
2024-01-01 23:40:13 +02:00
|
|
|
relocate 'me.hypherionmc.mcdiscordformatter', 'shadow.hypherionmc.mcdiscordformatter'
|
2024-05-01 18:28:52 +02:00
|
|
|
relocate 'net.kyori', 'shadow.kyori'
|
2022-06-10 18:58:26 +02:00
|
|
|
}
|
2023-11-12 12:30:11 +02:00
|
|
|
setArchiveClassifier("dev")
|
2023-09-25 20:18:35 +02:00
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
/**
|
|
|
|
* ===============================================================================
|
|
|
|
* = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
|
|
|
|
* ===============================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
unimined.minecraft {
|
|
|
|
fabric {
|
|
|
|
loader fabric_loader
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultRemapJar = false
|
2022-06-10 18:58:26 +02:00
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
processResources {
|
|
|
|
def buildProps = project.properties.clone()
|
|
|
|
|
|
|
|
filesMatching(['pack.mcmeta']) {
|
|
|
|
expand buildProps
|
|
|
|
}
|
|
|
|
}
|
2022-06-10 18:58:26 +02:00
|
|
|
|
2023-09-25 20:18:35 +02:00
|
|
|
/**
|
|
|
|
* Publishing Config
|
|
|
|
*/
|
2022-05-12 00:18:53 +02:00
|
|
|
publishing {
|
|
|
|
publications {
|
2023-11-12 12:30:11 +02:00
|
|
|
mavenCommon(MavenPublication) {
|
2022-05-12 00:18:53 +02:00
|
|
|
artifactId project.archivesBaseName
|
|
|
|
from components.java
|
2023-09-10 17:17:49 +02:00
|
|
|
|
2022-06-10 18:58:26 +02:00
|
|
|
pom.withXml {
|
|
|
|
Node pomNode = asNode()
|
|
|
|
pomNode.dependencies.'*'.findAll() {
|
|
|
|
it.artifactId.text() == 'regutils-joined-fabric' ||
|
|
|
|
it.artifactId.text() == 'core' ||
|
|
|
|
it.artifactId.text() == 'toml'
|
|
|
|
}.each() {
|
|
|
|
it.parent().remove(it)
|
|
|
|
}
|
|
|
|
}
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2024-05-01 14:11:52 +02:00
|
|
|
maven rootProject.orion.getPublishingMaven()
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
2023-11-12 12:30:11 +02:00
|
|
|
}
|