Skip to content

Commit

Permalink
add dependencies to modrinth upload task
Browse files Browse the repository at this point in the history
  • Loading branch information
Platymemo committed Jul 11, 2022
1 parent 99b6e8a commit c42e539
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ publishing {
}

import com.modrinth.minotaur.TaskModrinthUpload
import com.modrinth.minotaur.request.Dependency

task publishModrinth (type: TaskModrinthUpload) {
onlyIf {
Expand All @@ -106,6 +107,8 @@ task publishModrinth (type: TaskModrinthUpload) {
uploadFile = remapJar
changelog = new File("markdown/versions/${project.mod_version}.md").getText('UTF-8')
addGameVersion('1.19')
addDependency('fabric-api', Dependency.DependencyType.REQUIRED)
addDependency('cloth-config', Dependency.DependencyType.REQUIRED)
addLoader('fabric')
}

Expand Down

0 comments on commit c42e539

Please sign in to comment.