Skip to content

Commit

Permalink
Merge branch '1.20.2' into 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetrain1 committed Feb 2, 2024
2 parents 2144e28 + 62cef42 commit 48b4abc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 49 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
MAVEN_USERNAME: ${{secrets.MAVEN_USERNAME}}
MAVEN_PASSWORD: ${{secrets.MAVEN_PASSWORD}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
CURSEFORGE_TOKEN: ${{secrets.CURSEFORGE_TOKEN}}
MODRINTH_TOKEN: ${{secrets.MODRINTH_TOKEN}}
steps:
- name: Checking Out the Repository
Expand All @@ -46,5 +45,5 @@ jobs:
key: ${{ runner.os }}-gradle-#{{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Publish to CurseForge and Modrinth
- name: Publish to Modrinth
run: ./gradlew publishMod -PreleaseType=stable -PuseThirdPartyMods=false
49 changes: 4 additions & 45 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import com.matthewprenger.cursegradle.CurseArtifact
import com.matthewprenger.cursegradle.CurseProject
import com.matthewprenger.cursegradle.CurseRelation
import groovy.xml.XmlSlurper
import org.codehaus.groovy.runtime.ResourceGroovyMethods
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
Expand All @@ -19,15 +16,17 @@ buildscript {
}
dependencies {
classpath("org.kohsuke:github-api:+")
// remove these 2 to get normal fabric loom versions
classpath(files("libs/fabric-loom-1.5.local.jar"))
classpath("net.fabricmc:mapping-io:+")
}
}

plugins {
id("fabric-loom") version("1.4.+")
id("fabric-loom") version("+")
id("org.ajoberstar.grgit") version("+")
id("org.quiltmc.gradle.licenser") version("+")
id("com.modrinth.minotaur") version("+")
id("com.matthewprenger.cursegradle") version("+")
id("com.github.johnrengelman.shadow") version("+")
`maven-publish`
eclipse
Expand Down Expand Up @@ -212,13 +211,6 @@ repositories {
maven {
setUrl("https://maven.shedaniel.me/")
}
maven {
setUrl("https://cursemaven.com")

content {
includeGroup("curse.maven")
}
}
maven {
setUrl("https://maven.minecraftforge.net")
}
Expand Down Expand Up @@ -496,9 +488,7 @@ extra {
}

val modrinth_id: String by extra
val curseforge_id: String by extra
val release_type: String by extra
val curseforge_minecraft_version: String by extra
val changelog_file: String by extra

val modrinth_version = makeModrinthVersion(mod_version)
Expand Down Expand Up @@ -536,36 +526,6 @@ fun getBranch(): String {
return branch.substring(branch.lastIndexOf("/") + 1)
}

curseforge {
val token = System.getenv("CURSEFORGE_TOKEN")
apiKey = if (token == null || token.isEmpty()) "unset" else token
val gameVersion = if (curseforge_minecraft_version != "null") curseforge_minecraft_version else minecraft_version
project(closureOf<CurseProject> {
id = curseforge_id
changelog = changelog_text
releaseType = release_type
addGameVersion("Fabric")
addGameVersion("Quilt")
addGameVersion(gameVersion)
relations(closureOf<CurseRelation> {
requiredDependency("fabric-api")
optionalDependency("cloth-config")
})
mainArtifact(remapJar, closureOf<CurseArtifact> {
displayName = display_name
})
addArtifact(tasks.remapSourcesJar.get())
addArtifact(javadocJar)

afterEvaluate {
uploadTask.dependsOn(remapJar)
uploadTask.dependsOn(tasks.remapSourcesJar.get())
uploadTask.dependsOn(javadocJar)
}
})
curseGradleOptions.forgeGradleIntegration = false
}

modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = modrinth_id
Expand Down Expand Up @@ -616,6 +576,5 @@ val github by tasks.register("github") {
val publishMod by tasks.register("publishMod") {
dependsOn(tasks.publish)
dependsOn(github)
dependsOn(tasks.curseforge)
dependsOn(tasks.modrinth)
}
2 changes: 0 additions & 2 deletions gradle/publishing.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
modrinth_id=9KawNmQc
curseforge_id=709773

release_type=release
curseforge_minecraft_version=null
changelog_file=CHANGELOG.md
Binary file added libs/fabric-loom-1.5.local.jar
Binary file not shown.

0 comments on commit 48b4abc

Please sign in to comment.