aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorYasin <LifeIsAParadox@users.noreply.github.com>2023-10-08 06:00:39 +0200
committerGitHub <noreply@github.com>2023-10-08 00:00:39 -0400
commit5ca4287e111f110ee77d2b6086ca7c9d962fdfbd (patch)
tree9db2b7d9aa0b5b98fa4658b194305c4e8dddbd3b /build.gradle
parent9553f2a51932f58853067f098e57acb87df709c0 (diff)
downloadSkyblocker-5ca4287e111f110ee77d2b6086ca7c9d962fdfbd.tar.gz
Skyblocker-5ca4287e111f110ee77d2b6086ca7c9d962fdfbd.tar.bz2
Skyblocker-5ca4287e111f110ee77d2b6086ca7c9d962fdfbd.zip
sync MRREADME.md with modrinth description (#338)
- with this change the mrreadme is synched with modrinth description everytime the mod gets uploaded to modrinth. - Also added emi to optional list
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle14
1 files changed, 9 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index d26c0e92..8ed905d1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -140,18 +140,22 @@ modrinth {
gameVersions = [project.minecraft_version]
loaders = ["fabric"]
versionType = "release"
- dependencies = [ // Yet another array. Create a new `ModDependency` or `VersionDependency` with two strings - the ID and the scope
- new ModDependency("P7dR8mSH", "required"), // Creates a new required dependency on Fabric API
- new ModDependency("mOgUt4GM", "optional"), // modmenu
- new ModDependency("nfn13YXA", "optional") // REI
- ]
+ dependencies {
+ required.project "fabric-api"
+ optional.project "modmenu"
+ optional.project "rei"
+ optional.project "emi"
+ }
changelog = System.getenv('CHANGELOG')
+ syncBodyFrom = rootProject.file("MRREADME.md").text
}
tasks.modrinth.doLast {
println "::set-output name=url::https://modrinth.com/mod/skyblocker-liap/version/$uploadInfo.id"
}
+tasks.modrinth.dependsOn(tasks.modrinthSyncBody)
+
// configure the maven publication
publishing {
publications {