Skip to content

Commit

Permalink
add missing modrinth task
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Jul 28, 2024
1 parent 3367ffe commit d680b6d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
plugins {
id "maven-publish"
alias libs.plugins.loom
alias libs.plugins.minotaur
}

version = "$project.baseVersion+$project.branch"
archivesBaseName = project.archivesName
group = "net.modfest"

repositories {
maven { url "https://maven.terraformersmc.com/releases" }
Expand Down Expand Up @@ -69,3 +69,14 @@ publishing {
}
}
}

modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "ballotbox"
dependencies {
required.version "fabric-api", libs.versions.fapi.get()
}
changelog = System.getenv("CHANGELOG")
syncBodyFrom = "<!--DO NOT EDIT MANUALLY: synced from gh readme-->\n" + rootProject.file("README.md").text
uploadFile = remapJar
}
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ org.gradle.caching=true
org.gradle.parallel=true
org.gradle.caching.debug=false
org.gradle.configureondemand=true

# Loom
fabric.loom.multiProjectOptimisation=true

# Mod Metadata
archivesName=ballotbox
group=net.modfest
Expand All @@ -18,6 +20,7 @@ homepage=https://modrinth.com/mod/ballotbox
issues=https://github.com/modfest/ballotbox/issues
sources=https://github.com/modfest/ballotbox
license=MIT

# Mod Version
baseVersion=0.4.2
branch=1.21
2 changes: 2 additions & 0 deletions libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[versions]
loom = "1.7.+"
minotaur = "2.+"

mc = "1.21"
fl = "0.15.11"
Expand All @@ -10,6 +11,7 @@ kaleidoConfig = "0.3.1+1.3.1"

[plugins]
loom = { id = "fabric-loom", version.ref = "loom" }
minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" }

[libraries]
mc = { group = "mojang", name = "minecraft", version.ref = "mc" }
Expand Down

0 comments on commit d680b6d

Please sign in to comment.