Skip to content

Commit 2afd536

Browse files
committed
add a modrinthId property
mod-publish-plugin only accepts IDs, not slugs
1 parent 18ec37d commit 2afd536

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ publishMods {
7373
else -> STABLE
7474
}}
7575

76+
val modrinthId: String by project
7677
val compatibleLoaders: String by project
7778
val readme: RegularFile = rootProject.layout.projectDirectory.file("README.md")
7879

7980
modrinth {
80-
projectId = slug
81+
projectId = modrinthId
8182
accessToken = providers.environmentVariable("MODRINTH_TOKEN")
8283

8384
minecraftVersions.addAll(compatibleVersions.split(", "))

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ org.gradle.warning.mode=all
1515
group=io.github.username
1616
user=username
1717
slug=mod-id
18+
modrinthId=example
1819
modId=mod_id
1920
modName=Mod ID
2021
modDescription=Sal doesn't have editing software so he has to make memes through minecraft mod descriptions, making him tonight's big loser.

0 commit comments

Comments
 (0)