geforkt von Mirrors/Paper
Add task to print Minecraft version, add snapshots repo for publishing
Dieser Commit ist enthalten in:
Ursprung
3c5bfaddbe
Commit
7f82b50636
@ -6,6 +6,7 @@ plugins {
|
|||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
|
apply(plugin = "maven-publish")
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
@ -18,6 +19,16 @@ subprojects {
|
|||||||
options.release.set(16)
|
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") {
|
if (name == "Paper-MojangAPI") {
|
||||||
return@subprojects
|
return@subprojects
|
||||||
}
|
}
|
||||||
@ -74,3 +85,9 @@ paperweight {
|
|||||||
craftBukkitPatchPatchesDir.set(file("build-data/craftbukkit-patch-patches"))
|
craftBukkitPatchPatchesDir.set(file("build-data/craftbukkit-patch-patches"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register("printMinecraftVersion") {
|
||||||
|
doLast {
|
||||||
|
println(providers.gradleProperty("mcVersion").forUseAtConfigurationTime().get().trim())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren