Files
CraterLib/patches/1.20.2/NeoForge/build.gradle.patch

139 lines
3.8 KiB
Diff
Raw Normal View History

2024-05-19 19:08:42 +02:00
--- a/NeoForge/build.gradle
+++ /dev/null
@@ -1,135 +1,0 @@
2024-05-19 19:08:42 +02:00
-archivesBaseName = "${mod_name.replace(" ", "")}-NeoForge-${minecraft_version}"
-
-dependencies {
- // Compat
- modImplementation("maven.modrinth:vanishmod:${vanishmod_neo}")
-
2024-10-12 13:54:44 +02:00
- stupidRemapArch("dev.ftb.mods:ftb-essentials-neoforge:${ftb_essentials}")
2024-11-25 17:24:45 +02:00
- stupidRemapArch("dev.ftb.mods:ftb-ranks-neoforge:${ftb_ranks}")
2024-10-12 13:54:44 +02:00
-
- modImplementation("me.shedaniel.cloth:cloth-config-neoforge:${cloth_config}")
- modImplementation("unimaven.curseforge:playerrevive-266890:${player_revive}")
- modImplementation("unimaven.curseforge:creativecore-257814:${creative_core}")
-
2024-05-19 19:08:42 +02:00
- // Do not edit or remove
- implementation project(":Common")
-}
-
-shadowJar {
- from sourceSets.main.output
- configurations = [project.configurations.shade]
-
- 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-shadow')
- mergeServiceFiles()
2024-05-19 19:08:42 +02:00
-}
-
-/**
- * ===============================================================================
- * = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
- * ===============================================================================
- */
-
-unimined.minecraft {
- neoForged {
2025-03-25 19:49:02 +02:00
- if (isPort) {
2024-10-12 13:54:44 +02:00
- loader "net.neoforged:neoforge:${neoforge_version}:universal"
2025-03-25 19:49:02 +02:00
- } else {
2024-10-12 13:54:44 +02:00
- loader neoforge_version
2025-03-25 19:49:02 +02:00
- }
2024-10-12 13:54:44 +02:00
-
2024-05-19 19:08:42 +02:00
- mixinConfig("${mod_id}.mixins.json", "${mod_id}.neoforge.mixins.json")
- }
-}
-
-remapJar {
- inputFile.set shadowJar.archiveFile
- dependsOn shadowJar
- archiveClassifier.set null
-}
-
-jar {
- archiveClassifier.set "dev"
-}
-
-processResources {
- from project(":Common").sourceSets.main.resources
- def buildProps = project.properties.clone()
-
- filesMatching("META-INF/neoforge.mods.toml") {
- expand buildProps
- }
-}
-
-compileTestJava.enabled = false
-
-tasks.withType(JavaCompile).configureEach {
- source(project(":Common").sourceSets.main.allSource)
-}
-
-/**
- * Publishing Config
- */
-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)
- }
- }
- }
- }
-
- repositories {
- maven rootProject.orion.getPublishingMaven()
- }
-}
-
-publisher {
- apiKeys {
- modrinth(System.getenv("MODRINTH_TOKEN"))
- curseforge(System.getenv("CURSE_TOKEN"))
- nightbloom(System.getenv("PLATFORM_KEY"))
2024-05-19 19:08:42 +02:00
- }
-
- setCurseID(curse_id)
- setModrinthID(modrinth_id)
- setNightbloomID("craterlib")
2024-05-19 19:08:42 +02:00
- setVersionType("release")
2024-10-22 20:13:32 +02:00
- setChangelog(rootProject.file("changelog.md"))
2024-05-19 19:08:42 +02:00
- setProjectVersion("${minecraft_version}-${project.version}")
- setDisplayName("[NeoForge 1.21.3/1.21.4] CraterLib - ${project.version}")
- setGameVersions("1.21.3", "1.21.4")
2024-05-19 19:08:42 +02:00
- setLoaders("neoforge")
- setArtifact(remapJar)
- setCurseEnvironment("both")
- setIsManualRelease(true)
-
- curseDepends {
- optional("cloth-config")
- }
-
- modrinthDepends {
- optional("cloth-config")
- }
2024-05-19 19:08:42 +02:00
-}