3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-14 20:10:05 +01:00

Add task to print Minecraft version, add snapshots repo for publishing

Dieser Commit ist enthalten in:
Jason Penilla 2021-06-18 16:38:26 -07:00
Ursprung 3c5bfaddbe
Commit 7f82b50636
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0E75A301420E48F8

Datei anzeigen

@ -6,6 +6,7 @@ plugins {
subprojects {
apply(plugin = "java")
apply(plugin = "maven-publish")
java {
toolchain {
@ -18,6 +19,16 @@ subprojects {
options.release.set(16)
}
configure<PublishingExtension> {
repositories {
maven {
name = "paperSnapshots"
url = uri("https://papermc.io/repo/repository/maven-snapshots/")
credentials(PasswordCredentials::class)
}
}
}
if (name == "Paper-MojangAPI") {
return@subprojects
}
@ -74,3 +85,9 @@ paperweight {
craftBukkitPatchPatchesDir.set(file("build-data/craftbukkit-patch-patches"))
}
}
tasks.register("printMinecraftVersion") {
doLast {
println(providers.gradleProperty("mcVersion").forUseAtConfigurationTime().get().trim())
}
}