[FEAT] Paper Support
This commit is contained in:
119
patches/1.21.2/Forge/build.gradle.patch
Normal file
119
patches/1.21.2/Forge/build.gradle.patch
Normal file
@@ -0,0 +1,119 @@
|
||||
--- a/Forge/build.gradle
|
||||
+++ /dev/null
|
||||
@@ -1,116 +1,0 @@
|
||||
-// Adjust the output jar name here
|
||||
-archivesBaseName = "${mod_name.replace(" ", "")}-Forge-${minecraft_version}"
|
||||
-
|
||||
-dependencies {
|
||||
- // Compat
|
||||
- // NOT AVAILABLE ON FORGE modImplementation("maven.modrinth:vanishmod:${vanishmod}")
|
||||
-
|
||||
- // 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()
|
||||
-}
|
||||
-
|
||||
-/**
|
||||
- * ===============================================================================
|
||||
- * = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
|
||||
- * ===============================================================================
|
||||
- */
|
||||
-
|
||||
-unimined.minecraft {
|
||||
- minecraftForge {
|
||||
- loader forge_version
|
||||
- mixinConfig("${mod_id}.mixins.json", "${mod_id}.forge.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/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"))
|
||||
- }
|
||||
-
|
||||
- setCurseID(curse_id)
|
||||
- setModrinthID(modrinth_id)
|
||||
- setNightbloomID("craterlib")
|
||||
- setVersionType("release")
|
||||
- setChangelog(rootProject.file("changelog.md"))
|
||||
- setProjectVersion("${minecraft_version}-${project.version}")
|
||||
- setDisplayName("[Forge 1.20.6] CraterLib - ${project.version}")
|
||||
- setGameVersions("1.20.6")
|
||||
- setLoaders("forge")
|
||||
- setArtifact(remapJar)
|
||||
- setCurseEnvironment("both")
|
||||
- setIsManualRelease(true)
|
||||
-}
|
Reference in New Issue
Block a user