Skip to content

Commit f6e7580

Browse files
committed
fix publishMods configuration
1 parent 76058e6 commit f6e7580

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

build.gradle.kts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,13 @@ java {
112112
}
113113

114114
publishMods {
115-
displayName.set("Debugify ${project.version}")
116-
117-
file.set(tasks.remapJar.get().archiveFile)
115+
displayName = modstitch.metadata.modVersion.map { "Debugify $it" }
116+
version = modstitch.metadata.modVersion
117+
file = tasks.remapJar.get().archiveFile
118+
type = STABLE
119+
modLoaders.add("fabric")
118120

119-
changelog.set(modstitch.minecraftVersion.zip(modstitch.metadata.modVersion) { mcVersion, modVersion ->
121+
changelog = modstitch.minecraftVersion.zip(modstitch.metadata.modVersion) { mcVersion, modVersion ->
120122
val header = file("changelogs/header.md")
121123
.takeIf { it.exists() }
122124
?.readText()
@@ -125,10 +127,7 @@ publishMods {
125127
.takeIf { it.exists() }
126128
?.readText()
127129
?.let { if (header != null) "$header\n\n$it" else it }
128-
})
129-
130-
type.set(STABLE)
131-
modLoaders.add("fabric")
130+
}
132131

133132
val modrinthId: String by project
134133
if (modrinthId.isNotBlank() && hasProperty("modrinth.token")) {

0 commit comments

Comments
 (0)