2023-11-12 12:30:11 +02:00
|
|
|
archivesBaseName = "${mod_name.replace(" ", "")}-Fabric-${minecraft_version}"
|
2023-03-19 19:57:38 +02:00
|
|
|
|
2022-05-12 00:18:53 +02:00
|
|
|
dependencies {
|
2023-11-12 12:30:11 +02:00
|
|
|
// Core
|
|
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_api}"
|
2022-08-06 23:36:19 +02:00
|
|
|
|
2024-05-01 18:28:52 +02:00
|
|
|
// Compat
|
2023-11-12 12:30:11 +02:00
|
|
|
modImplementation("com.terraformersmc:modmenu:${mod_menu_version}") {
|
2022-08-06 23:36:19 +02:00
|
|
|
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
|
|
|
|
2025-01-14 15:53:58 +02:00
|
|
|
modImplementation("me.shedaniel.cloth:cloth-config-fabric:${cloth_config}")
|
2024-05-03 22:48:16 +02:00
|
|
|
modImplementation "maven.modrinth:fabrictailor:${fabrictailor}"
|
|
|
|
modImplementation "maven.modrinth:vanish:${vanish}"
|
2025-04-28 14:07:53 +02:00
|
|
|
modImplementation("unimaven.modrinth:advanced-chat:${advanced_chat}")
|
2024-05-01 18:28:52 +02:00
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
// Do not edit or remove
|
|
|
|
implementation project(":Common")
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
shadowJar {
|
|
|
|
from sourceSets.main.output
|
|
|
|
configurations = [project.configurations.shade]
|
2022-05-12 00:18:53 +02:00
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
dependencies {
|
2024-05-01 18:28:52 +02:00
|
|
|
exclude(dependency('com.google.code.gson:.*'))
|
|
|
|
|
2023-11-12 12:30:11 +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-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
setArchiveClassifier('dev-shadow')
|
2024-08-07 21:09:10 +02:00
|
|
|
mergeServiceFiles()
|
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
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
remapJar {
|
|
|
|
inputFile.set shadowJar.archiveFile
|
|
|
|
dependsOn shadowJar
|
|
|
|
archiveClassifier.set null
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
2023-11-12 12:30:11 +02:00
|
|
|
archiveClassifier.set "dev"
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
processResources {
|
|
|
|
from project(":Common").sourceSets.main.resources
|
|
|
|
def buildProps = project.properties.clone()
|
|
|
|
|
|
|
|
filesMatching(['fabric.mod.json']) {
|
|
|
|
expand buildProps
|
2023-03-19 19:57:38 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
compileTestJava.enabled = false
|
2023-03-19 19:57:38 +02:00
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
source(project(":Common").sourceSets.main.allSource)
|
|
|
|
}
|
2023-04-02 17:00:44 +02:00
|
|
|
|
2023-09-25 20:18:35 +02:00
|
|
|
/**
|
|
|
|
* Publishing Config
|
|
|
|
*/
|
2022-05-12 00:18:53 +02:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
artifactId project.archivesBaseName
|
|
|
|
from components.java
|
2023-09-10 19:12:10 +02:00
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
artifact(remapJar) {
|
|
|
|
builtBy remapJar
|
2023-09-10 19:12:10 +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' ||
|
2023-11-12 12:30:11 +02:00
|
|
|
it.artifactId.text() == 'toml'
|
2022-06-10 18:58:26 +02:00
|
|
|
}.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
|
|
|
|
2023-06-07 19:21:30 +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"))
|
2023-06-07 19:21:30 +02:00
|
|
|
}
|
|
|
|
|
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-04-28 13:46:44 +02:00
|
|
|
setDisplayName("[FABRIC/QUILT 1.21.6] CraterLib - ${project.version}")
|
|
|
|
setGameVersions("1.21.6")
|
2024-05-05 23:15:56 +02:00
|
|
|
setLoaders("fabric", "quilt")
|
|
|
|
setArtifact(remapJar)
|
|
|
|
setCurseEnvironment("both")
|
2024-06-13 19:01:48 +02:00
|
|
|
setIsManualRelease(true)
|
2023-06-07 19:21:30 +02:00
|
|
|
|
|
|
|
modrinthDepends {
|
2024-05-05 23:15:56 +02:00
|
|
|
required("fabric-api")
|
2025-01-14 15:53:58 +02:00
|
|
|
optional("cloth-config", "modmenu")
|
2023-06-07 19:21:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
curseDepends {
|
2024-05-05 23:15:56 +02:00
|
|
|
required("fabric-api")
|
2025-01-14 15:53:58 +02:00
|
|
|
optional("cloth-config", "modmenu")
|
2023-06-07 19:21:30 +02:00
|
|
|
}
|
2023-12-02 15:46:59 +02:00
|
|
|
}
|