mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
add mod publishing gradle task
This commit is contained in:
35
buildSrc/src/main/groovy/multiloader-publish.gradle
Normal file
35
buildSrc/src/main/groovy/multiloader-publish.gradle
Normal file
@@ -0,0 +1,35 @@
|
||||
plugins {
|
||||
id "me.modmuss50.mod-publish-plugin"
|
||||
}
|
||||
|
||||
publishMods {
|
||||
if (project.name == 'fabric')
|
||||
file = remapJar.archiveFile
|
||||
else
|
||||
file = jar.archiveFile
|
||||
|
||||
modLoaders.add(project.name)
|
||||
type = STABLE
|
||||
version = project.version
|
||||
displayName = "[${project.name.capitalize()}] ${mod_name} ${mod_version}"
|
||||
changelog = rootProject.file('CHANGELOG_LATEST.md').text
|
||||
|
||||
curseforge {
|
||||
projectId = curseforge_id
|
||||
|
||||
dryRun = providers.environmentVariable("CURSEFORGE_API_KEY").getOrNull() == null
|
||||
accessToken = providers.environmentVariable("CURSEFORGE_API_KEY")
|
||||
|
||||
minecraftVersions.addAll(minecraft_version_list.split(','))
|
||||
serverRequired = true
|
||||
}
|
||||
|
||||
modrinth {
|
||||
projectId = modrinth_id
|
||||
|
||||
dryRun = providers.environmentVariable("MODRINTH_API_KEY").getOrNull() == null
|
||||
accessToken = providers.environmentVariable("MODRINTH_API_KEY")
|
||||
|
||||
minecraftVersions.addAll(minecraft_version_list.split(','))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user