Files
CraterLib/Common/build.gradle
2024-05-01 14:11:52 +02:00

67 lines
1.6 KiB
Groovy

archivesBaseName = "${mod_name.replace(" ", "")}-Common-${minecraft_version}"
dependencies {
}
shadowJar {
from sourceSets.main.output
configurations = [project.configurations.shade]
dependencies {
relocate 'me.hypherionmc.moonconfig', 'shadow.hypherionmc.moonconfig'
relocate 'me.hypherionmc.mcdiscordformatter', 'shadow.hypherionmc.mcdiscordformatter'
}
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
*/
publishing {
publications {
mavenCommon(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName
version project.version
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)
}
}
}
}
repositories {
maven rootProject.orion.getPublishingMaven()
}
}