mirror of
https://github.com/Lucaslah/WeatherChanger.git
synced 2026-01-09 20:47:51 +00:00
1.21 Fabric (#8)
Prep for release of version 1.1.0 (MC 1.21 for Fabric only)
This commit is contained in:
@@ -1,14 +1,9 @@
|
||||
import io.github.themrmilchmann.gradle.publish.curseforge.ChangelogFormat
|
||||
import io.github.themrmilchmann.gradle.publish.curseforge.GameVersion
|
||||
import io.github.themrmilchmann.gradle.publish.curseforge.ReleaseType
|
||||
import net.fabricmc.loom.task.RemapJarTask
|
||||
import net.fabricmc.loom.task.RemapSourcesJarTask
|
||||
|
||||
plugins {
|
||||
id("architectury-plugin") version "3.4.+"
|
||||
id ("dev.architectury.loom") version "1.5.+" apply false
|
||||
id("com.modrinth.minotaur") version "2.+"
|
||||
id("io.github.themrmilchmann.curseforge-publish") version "0.6.1"
|
||||
id ("dev.architectury.loom") version "1.6.+" apply false
|
||||
}
|
||||
|
||||
architectury {
|
||||
@@ -55,48 +50,3 @@ allprojects {
|
||||
|
||||
group = properties["maven_group"].toString()
|
||||
}
|
||||
|
||||
modrinth {
|
||||
token.set(System.getenv("MODRINTH_TOKEN"))
|
||||
projectId.set("nhSHTGyl")
|
||||
versionNumber.set(properties["mod_version"].toString())
|
||||
versionType.set(properties["release_channel"].toString())
|
||||
uploadFile.set("build/libs/weather-changer-1.0.0.jar")
|
||||
gameVersions.addAll("1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4")
|
||||
|
||||
loaders.add("fabric")
|
||||
loaders.add("forge")
|
||||
|
||||
dependencies {
|
||||
required.project("fabric-api")
|
||||
}
|
||||
|
||||
syncBodyFrom = rootProject.file("README.md").readText()
|
||||
}
|
||||
|
||||
curseforge {
|
||||
apiToken = System.getenv("CURSEFORGE_TOKEN")
|
||||
publications {
|
||||
register("curseForge") {
|
||||
projectId = "682513"
|
||||
|
||||
gameVersions.add(GameVersion("minecraft-1-20", "1.20"))
|
||||
gameVersions.add(GameVersion("minecraft-1-20", "1.20.1"))
|
||||
gameVersions.add(GameVersion("minecraft-1-20", "1.20.2"))
|
||||
gameVersions.add(GameVersion("minecraft-1-20", "1.20.3"))
|
||||
gameVersions.add(GameVersion("minecraft-1-20", "1.20.4"))
|
||||
|
||||
artifacts.register("main") {
|
||||
displayName = "Weather Changer"
|
||||
// TODO: read from file
|
||||
releaseType = ReleaseType.BETA
|
||||
|
||||
changelog {
|
||||
// TODO: get from git diff
|
||||
format = ChangelogFormat.MARKDOWN
|
||||
from(file("CHANGELOG.md"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user