mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
Fix Modrinth publishing
This commit is contained in:
1 parent
028426647f
commit
e617725c20
2 files changed
+19
-16
No files matched your search
@@ -1,7 +1,6 @@
|
|||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.modrinth.minotaur' version '2.+'
|
|
||||||
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
||||||
id 'org.ajoberstar.grgit' version '5.0.0'
|
id 'org.ajoberstar.grgit' version '5.0.0'
|
||||||
id 'java'
|
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")
|
logger.lifecycle("Building HuskHomes ${version} by William278")
|
||||||
|
|
||||||
@SuppressWarnings('GrMethodMayBeStatic')
|
@SuppressWarnings('GrMethodMayBeStatic')
|
||||||
|
|||||||
+19
-2
@@ -1,6 +1,23 @@
|
|||||||
|
plugins {
|
||||||
|
id 'com.modrinth.minotaur' version '2.+'
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(path: ':bukkit', configuration: 'shadow')
|
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"))
|
||||||
Reference in new issue
Block a user