Files
CraterLib/Common/build.gradle

71 lines
1.9 KiB
Groovy
Raw Normal View History

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}")
stupidRemapArch("me.shedaniel.cloth:cloth-config:${cloth_config}")
2022-05-12 00:18:53 +02:00
}
shadowJar {
from sourceSets.main.output
2024-05-01 14:11:52 +02:00
configurations = [project.configurations.shade]
2024-05-01 14:11:52 +02:00
dependencies {
exclude(dependency('com.google.code.gson:.*'))
relocate 'me.hypherionmc.moonconfig', 'shadow.hypherionmc.moonconfig'
relocate 'me.hypherionmc.mcdiscordformatter', 'shadow.hypherionmc.mcdiscordformatter'
relocate 'net.kyori', 'shadow.kyori'
}
setArchiveClassifier("dev")
}
/**
* ===============================================================================
* = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
* ===============================================================================
*/
unimined.minecraft {
fabric {
loader fabric_loader
}
defaultRemapJar = false
}
processResources {
def buildProps = project.properties.clone()
filesMatching(['pack.mcmeta']) {
expand buildProps
}
}
/**
* Publishing Config
*/
2022-05-12 00:18:53 +02:00
publishing {
publications {
mavenCommon(MavenPublication) {
2022-05-12 00:18:53 +02:00
artifactId project.archivesBaseName
from components.java
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
}
}