Skip to content

Commit f0d5456

Browse files
Merge branch 'master' into 1.20.3-rc1
2 parents 6b83171 + 94e17e9 commit f0d5456

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

build.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
id 'fabric-loom' version '1.4-SNAPSHOT'
99
id 'maven-publish'
1010
id 'com.matthewprenger.cursegradle' version '1.4.0'
11+
id "com.modrinth.minotaur" version "2.+"
1112
}
1213

1314
def ENV = System.getenv()
@@ -110,8 +111,28 @@ curseforge {
110111
}
111112
}
112113

114+
modrinth {
115+
if (ENV.MODRINTH_TOKEN) {
116+
token = ENV.MODRINTH_TOKEN
117+
}
118+
projectId = "mo-glass"
119+
versionName = "Mo Glass ${version}"
120+
versionType = "release"
121+
uploadFile = remapJar
122+
additionalFiles = [
123+
file("${project.buildDir}/libs/${archivesBaseName}-${version}-sources.jar"),
124+
file("${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar"),
125+
file("${project.buildDir}/libs/${archivesBaseName}-${version}-sources-dev.jar")
126+
]
127+
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})"
128+
dependencies {
129+
required.version "fabric-api", project.fabric_version
130+
}
131+
}
132+
113133
afterEvaluate {
114134
tasks.curseforge353426.dependsOn moveDevLibs
135+
tasks.modrinth.dependsOn moveDevLibs
115136
}
116137

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

0 commit comments

Comments
 (0)