Fix modrinth publishing again, set env variables + changelog

This commit is contained in:
William278 committed 2022-09-02 23:52:20 +03:00
1 parent e617725c20
commit e79e8edcb1
3 files changed
+22 -23

No files matched your search

+16
View File
@@ -1,6 +1,7 @@
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.modrinth.minotaur' version '2.+'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'org.ajoberstar.grgit' version '5.0.0'
id 'java'
@@ -100,6 +101,21 @@ subprojects {
}
}
tasks {
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "huskhomes"
versionType = "alpha"
gameVersions = ["1.16.5", "1.17.1", "1.18.2", "1.19.2"]
loaders = ["spigot", "paper", "purpur"]
versionName = "${project.version}"
versionNumber = "${project.version}"
versionType = "alpha"
uploadFile = file("$rootDir/target/HuskHomes-Plugin-${project.version}.jar")
changelog = System.getenv("MODRINTH_CHANGELOG")
}
}
logger.lifecycle("Building HuskHomes ${version} by William278")
@SuppressWarnings('GrMethodMayBeStatic')