Files
CraterLib/Fabric/build.gradle

137 lines
3.6 KiB
Groovy
Raw Permalink Normal View History

archivesBaseName = "${mod_name.replace(" ", "")}-Fabric-${minecraft_version}"
2022-05-12 00:18:53 +02:00
dependencies {
// Core
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_api}"
// Compat
modImplementation("com.terraformersmc:modmenu:${mod_menu_version}") {
exclude(group: "net.fabricmc.fabric-api")
}
2022-05-12 00:18:53 +02:00
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}")
2024-10-18 12:30:15 +02:00
modImplementation("me.shedaniel.cloth:cloth-config-fabric:${cloth_config}")
modImplementation "maven.modrinth:fabrictailor:${fabrictailor}"
modImplementation "maven.modrinth:vanish:${vanish}"
modImplementation("unimaven.modrinth:advanced-chat:${advanced_chat}")
// Do not edit or remove
implementation project(":Common")
2022-05-12 00:18:53 +02:00
}
shadowJar {
from sourceSets.main.output
configurations = [project.configurations.shade]
2022-05-12 00:18:53 +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'
2022-05-12 00:18:53 +02:00
}
setArchiveClassifier('dev-shadow')
mergeServiceFiles()
}
/**
* ===============================================================================
* = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
* ===============================================================================
*/
unimined.minecraft {
fabric {
loader fabric_loader
2022-05-12 00:18:53 +02:00
}
}
remapJar {
inputFile.set shadowJar.archiveFile
dependsOn shadowJar
archiveClassifier.set null
2022-05-12 00:18:53 +02:00
}
jar {
archiveClassifier.set "dev"
2022-05-12 00:18:53 +02:00
}
processResources {
from project(":Common").sourceSets.main.resources
def buildProps = project.properties.clone()
filesMatching(['fabric.mod.json']) {
expand buildProps
}
}
compileTestJava.enabled = false
tasks.withType(JavaCompile).configureEach {
source(project(":Common").sourceSets.main.allSource)
}
2023-04-02 17:00:44 +02:00
/**
* Publishing Config
*/
2022-05-12 00:18:53 +02:00
publishing {
publications {
mavenJava(MavenPublication) {
artifactId project.archivesBaseName
from components.java
artifact(remapJar) {
builtBy remapJar
}
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
}
}
2022-05-12 00:20:18 +02:00
publisher {
apiKeys {
2024-05-05 23:15:56 +02:00
modrinth(System.getenv("MODRINTH_TOKEN"))
curseforge(System.getenv("CURSE_TOKEN"))
2024-07-05 21:10:46 +02:00
nightbloom(System.getenv("PLATFORM_KEY"))
}
2024-05-05 23:15:56 +02:00
setCurseID(curse_id)
setModrinthID(modrinth_id)
2024-07-05 21:10:46 +02:00
setNightbloomID("craterlib")
2024-05-05 23:15:56 +02:00
setVersionType("release")
2024-11-11 10:55:21 +02:00
setChangelog(rootProject.file("changelog.md"))
2024-05-05 23:15:56 +02:00
setProjectVersion("${minecraft_version}-${project.version}")
2025-07-29 18:07:15 +02:00
setDisplayName("[FABRIC/QUILT 1.21.9] CraterLib - ${project.version}")
setGameVersions("1.21.9")
2024-05-05 23:15:56 +02:00
setLoaders("fabric", "quilt")
setArtifact(remapJar)
setCurseEnvironment("both")
setIsManualRelease(true)
modrinthDepends {
2024-05-05 23:15:56 +02:00
required("fabric-api")
optional("cloth-config", "modmenu")
}
curseDepends {
2024-05-05 23:15:56 +02:00
required("fabric-api")
optional("cloth-config", "modmenu")
}
2023-12-02 15:46:59 +02:00
}