Skip to content

Commit

Permalink
Merge branch 'master' into v1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 5, 2023
2 parents 2d6d5de + 94e17e9 commit 7fb5958
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'maven-publish'
id 'com.matthewprenger.cursegradle' version '1.4.0'
id "com.modrinth.minotaur" version "2.+"
}

def ENV = System.getenv()
Expand Down Expand Up @@ -110,8 +111,28 @@ curseforge {
}
}

modrinth {
if (ENV.MODRINTH_TOKEN) {
token = ENV.MODRINTH_TOKEN
}
projectId = "mo-glass"
versionName = "Mo Glass ${version}"
versionType = "release"
uploadFile = remapJar
additionalFiles = [
file("${project.buildDir}/libs/${archivesBaseName}-${version}-sources.jar"),
file("${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar"),
file("${project.buildDir}/libs/${archivesBaseName}-${version}-sources-dev.jar")
]
changelog = "A changelog can be found at: [https://www.wimods.net/mo-glass/mo-glass-1-6-1/](https://www.wimods.net/mo-glass/mo-glass-1-6-1/?mc=${project.minecraft_version}&utm_source=Modrinth&utm_medium=Mo+Glass&utm_campaign=Changelog&utm_content=Modrinth+Mo+Glass+MC${project.minecraft_version})"
dependencies {
required.version "fabric-api", project.fabric_version
}
}

afterEvaluate {
tasks.curseforge353426.dependsOn moveDevLibs
tasks.modrinth.dependsOn moveDevLibs
}

task moveDevLibs(dependsOn: [remapJar, remapSourcesJar]) {
Expand Down

0 comments on commit 7fb5958

Please sign in to comment.