mirror of
https://github.com/wisplite/crystalline-sky.git
synced 2026-10-30 13:32:18 -05:00
fix modrinth config II
This commit is contained in:
+2
-4
@@ -210,9 +210,7 @@ subprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val isFabric = project.name == "fabric"
|
val isFabric = project.name == "fabric"
|
||||||
val description = providers.fileContents { rootProject.file("README.md") }.asText.map {
|
val description = "<!--DO NOT EDIT MANUALLY: synced from gh readme-->\n" + rootProject.file("README.md").readText()
|
||||||
"<!--DO NOT EDIT MANUALLY: synced from gh readme-->\n${it}"
|
|
||||||
}
|
|
||||||
configure<ModrinthExtension> {
|
configure<ModrinthExtension> {
|
||||||
token.set(providers.environmentVariable("MODRINTH_TOKEN"))
|
token.set(providers.environmentVariable("MODRINTH_TOKEN"))
|
||||||
projectId = "slug"()
|
projectId = "slug"()
|
||||||
@@ -227,7 +225,7 @@ subprojects {
|
|||||||
loaders.add("neoforge")
|
loaders.add("neoforge")
|
||||||
}
|
}
|
||||||
changelog.set(providers.environmentVariable("CHANGELOG"))
|
changelog.set(providers.environmentVariable("CHANGELOG"))
|
||||||
syncBodyFrom.set(description)
|
syncBodyFrom.set(description) // lazyness doesn't seem to work for this?
|
||||||
dependencies {
|
dependencies {
|
||||||
if (isFabric) {
|
if (isFabric) {
|
||||||
required.version("fabric-api", libs.versions.fapi.get())
|
required.version("fabric-api", libs.versions.fapi.get())
|
||||||
|
|||||||
Reference in New Issue
Block a user