Fix Modrinth publishing

This commit is contained in:
William278 committed 2022-09-02 23:42:03 +03:00
1 parent 028426647f
commit e617725c20
2 files changed
+19 -16

No files matched your search

-14
View File
@@ -1,7 +1,6 @@
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'
@@ -101,19 +100,6 @@ 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"]
versionName = "${project.version}"
versionNumber = "${project.version}"
versionType = "alpha"
uploadFile = file("$rootDir/target/HuskHomes-Plugin-${project.version}.jar")
}
}
logger.lifecycle("Building HuskHomes ${version} by William278")
@SuppressWarnings('GrMethodMayBeStatic')
+19 -2
View File
@@ -1,6 +1,23 @@
plugins {
id 'com.modrinth.minotaur' version '2.+'
}
dependencies {
implementation project(path: ':bukkit', configuration: 'shadow')
}
shadowJar {
}
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")
}
}
tasks.getByName("build").finalizedBy(tasks.getByName("modrinth"))