Skip to content

Commit 7bc757a

Browse files
committed
Update to new modrinth publish
1 parent c7c96a7 commit 7bc757a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ buildscript {
88
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '6.+', changing: true
99
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
1010
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.4.0"
11-
classpath group: 'gradle.plugin.com.modrinth.minotaur', name: 'Minotaur', version: '1.1.0'
11+
classpath group: 'com.modrinth.minotaur', name: 'Minotaur', version: '2+'
1212
}
1313
}
1414

1515
apply plugin: 'net.minecraftforge.gradle'
1616
apply plugin: 'org.spongepowered.mixin'
1717
apply plugin: "com.matthewprenger.cursegradle"
1818
apply plugin: 'maven-publish'
19+
apply plugin: 'com.modrinth.minotaur'
1920

2021
group = 'uk.co.hexeption'
2122
version = '1.20.1-1.0.0'
@@ -195,9 +196,7 @@ publishing {
195196
}
196197
}
197198

198-
import com.modrinth.minotaur.TaskModrinthUpload
199-
200-
task publishModrinth (type: TaskModrinthUpload){
199+
modrinth {
201200
if (env.MODRINTH_API_KEY) {
202201
token = env.MODRINTH_API_KEY
203202
}
@@ -206,7 +205,10 @@ task publishModrinth (type: TaskModrinthUpload){
206205
changelog = 'A changelog can be found at https://github.com/Hexeption/AEInfinityBooster'
207206
versionNumber = "$version"
208207
uploadFile = jar
209-
addGameVersion("1.20.2")
210-
addLoader('forge')
208+
gameVersions = ["1.20.2"]
209+
loaders = ["forge"]
210+
dependencies {
211+
required.version "ae2", "forge-15.0.2-alpha"
212+
}
211213
}
212214

0 commit comments

Comments
 (0)