build: publish to fill (#12717)

This commit is contained in:
Riley Park
2025-06-23 14:13:13 -07:00
committed by GitHub
parent 803baf0ba6
commit 1814d8b47a

View File

@@ -1,3 +1,4 @@
import io.papermc.fill.model.BuildChannel
import io.papermc.paperweight.attribute.DevBundleOutput import io.papermc.paperweight.attribute.DevBundleOutput
import io.papermc.paperweight.util.* import io.papermc.paperweight.util.*
import io.papermc.paperweight.util.data.FileEntry import io.papermc.paperweight.util.data.FileEntry
@@ -10,6 +11,7 @@ plugins {
`maven-publish` `maven-publish`
idea idea
id("io.papermc.paperweight.core") id("io.papermc.paperweight.core")
id("io.papermc.fill.gradle") version "1.0.3"
} }
val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/" val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
@@ -372,3 +374,20 @@ tasks.registerRunTask("runReobfPaperclip") {
classpath(tasks.createReobfPaperclipJar.flatMap { it.outputZip }) classpath(tasks.createReobfPaperclipJar.flatMap { it.outputZip })
mainClass.set(null as String?) mainClass.set(null as String?)
} }
fill {
project("paper")
versionFamily(paperweight.minecraftVersion.map { it.split(".", "-").takeWhile { part -> part.toIntOrNull() != null }.take(2).joinToString(".") })
version(paperweight.minecraftVersion)
build {
channel = BuildChannel.ALPHA
downloads {
register("server:default") {
file = tasks.createMojmapPaperclipJar.flatMap { it.outputZip }
nameResolver.set { project, _, version, build -> "$project-$version-$build.jar" }
}
}
}
}