Skip to content

Commit

Permalink
use names and constants
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Dec 3, 2023
1 parent b8a804c commit 905ba56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.modrinth.minotaur.TaskModrinthUpload
import net.darkhax.curseforgegradle.Constants
import net.darkhax.curseforgegradle.TaskPublishCurseForge

plugins {
Expand Down Expand Up @@ -133,12 +134,12 @@ tasks {
dependsOn(remapJar)
apiToken = project.properties["curseforge_token"] as String
val mainFile = upload(860936, remapJar.get().archiveFile)
mainFile.releaseType = "release"
mainFile.releaseType = Constants.RELEASE_TYPE_BETA
mainFile.gameVersions.add(minecraftVersion)
mainFile.addModLoader("fabric", "quilt")
mainFile.displayName = remapJar.get().archiveBaseName.get() + '-' + version
mainFile.changelog = "Test changelog"
mainFile.addRelations("required", 419699, 704113, 687131, 306612)
mainFile.addRelations(Constants.RELATION_REQUIRED, "architectury-api", "botarium", "cobblemon", "fabric-api")
}
}

Expand Down
5 changes: 3 additions & 2 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.modrinth.minotaur.TaskModrinthUpload
import net.darkhax.curseforgegradle.Constants
import net.darkhax.curseforgegradle.TaskPublishCurseForge

plugins {
Expand Down Expand Up @@ -127,12 +128,12 @@ tasks {
dependsOn(remapJar)
apiToken = project.properties["curseforge_token"] as String
val mainFile = upload(860936, remapJar.get().archiveFile)
mainFile.releaseType = "release"
mainFile.releaseType = Constants.RELEASE_TYPE_BETA
mainFile.gameVersions.add(minecraftVersion)
mainFile.addModLoader("forge")
mainFile.displayName = remapJar.get().archiveBaseName.get() + '-' + version
mainFile.changelog = "Test changelog"
mainFile.addRelations("required", 419699, 704113, 687131)
mainFile.addRelations(Constants.RELATION_REQUIRED, "architectury-api", "botarium", "cobblemon")
}
}

Expand Down

0 comments on commit 905ba56

Please sign in to comment.