Finish factory implementation

This commit is contained in:
天クマ 2026-05-23 21:41:17 -03:00
commit 0b753d6a4e
15 changed files with 75 additions and 52 deletions

View file

@ -1,6 +1,6 @@
plugins {
java
id("xyz.jpenilla.run-paper") version "2.3.1"
id("xyz.jpenilla.run-paper") version "3.0.1"
}
group = "org.adrianvictor"
@ -70,7 +70,7 @@ dependencies {
/* ----------------------------------------- */
mcVersions.forEach { ver ->
tasks.register<Jar>("jar${ver.replace(".", "_").replace("-", "_").replace("/", "_").capitalize()}") {
tasks.register<Jar>("jar${ver.replace(".", "_").replace("-", "_").replace("/", "_").replaceFirstChar { it.uppercase() }}") {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets["main"].output)
from(sourceSets[ver].output)
@ -126,4 +126,13 @@ java {
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
/* ----------------------------------------- */
/* RUN SETTINGS */
/* ----------------------------------------- */
tasks.runServer {
minecraftVersion("1.21.1")
pluginJars.from(tasks.named("jarR1_21"))
}