summaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorAizistral2022-06-17 15:19:25 +0200
committerAizistral2022-06-17 15:19:25 +0200
commit01c10d2137373665e9e835eac3bab2eff674dabd (patch)
tree6d6abec4641301997dfd96b4c1c1d74ecd5560c2 /build.gradle
parent64b43c318b1ca070264777aa2cdf05c2bab4c6d7 (diff)
Modrinth publishing
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle32
1 files changed, 30 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index 8210250..2af6f08 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,6 +9,14 @@ buildscript {
url = 'https://repo.spongepowered.org/repository/maven-public/'
content { includeGroup "org.spongepowered" }
}
+ maven {
+ name "Gradle Plugin Portal"
+ url 'https://plugins.gradle.org/m2/'
+ content {
+ includeGroup "gradle.plugin.com.matthewprenger"
+ includeGroup "com.modrinth"
+ }
+ }
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
@@ -17,6 +25,10 @@ buildscript {
}
}
+plugins {
+ id "com.modrinth.minotaur" version "2.+"
+}
+
println("Applying plugins...")
apply plugin: 'net.minecraftforge.gradle'
@@ -177,14 +189,30 @@ curseforge {
changelogType = 'html'
changelog = file('docs/changelog.html')
- addGameVersion '1.18'
- addGameVersion '1.18.1'
+ addGameVersion '1.19'
//addArtifact(sourcesJar)
//addArtifact(apiJar)
}
}
+modrinth {
+ token = findProperty('modrinthKey') ?: 0
+ projectId = "qQyHxfxd"
+ versionNumber = project.version
+ versionName = "No Chat Reports" + project.version
+ versionType = "release"
+ changelog = rootProject.file("docs/changelog.html").text
+ uploadFile = jar
+ gameVersions = ["1.19"]
+
+ //syncBodyFrom = rootProject.file("docs/README.md").text
+}
+
+task upload {
+ dependsOn('modrinth')
+ dependsOn('curseforge')
+}
task updateResources() {