@@ -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
1515apply plugin : ' net.minecraftforge.gradle'
1616apply plugin : ' org.spongepowered.mixin'
1717apply plugin : " com.matthewprenger.cursegradle"
1818apply plugin : ' maven-publish'
19+ apply plugin : ' com.modrinth.minotaur'
1920
2021group = ' uk.co.hexeption'
2122version = ' 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