mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 09:42:06 -07:00
build: publish to fill (#12717)
This commit is contained in:
@@ -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" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user