User: kyle wood Date: 02 Apr 25 18:37 Revision: 9e08a525a4aca214c2186b5916787ad06c74299b Summary: Update templates repo TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=9931&personal=false Index: templates/bukkit/build.gradle.ft =================================================================== --- templates/bukkit/build.gradle.ft (revision 5ca2d036e6ff2127f6e86343f874945781fb9c38) +++ templates/bukkit/build.gradle.ft (revision 9e08a525a4aca214c2186b5916787ad06c74299b) @@ -1,5 +1,6 @@ plugins { id 'java' + id("xyz.jpenilla.run-paper") version "2.3.1" } group = '${BUILD_COORDS.groupId}' @@ -32,6 +33,15 @@ #end } +tasks { + runServer { + // Configure the Minecraft version for our task. + // This is the only required configuration besides applying the plugin. + // Your plugin's jar (or shadowJar if present) will be used automatically. + minecraftVersion(${API_VERSION}) + } +} + def targetJavaVersion = ${JAVA_VERSION} java { def javaVersion = JavaVersion.toVersion(targetJavaVersion) Index: templates/bukkit/build.gradle.kts.ft =================================================================== --- templates/bukkit/build.gradle.kts.ft (revision 5ca2d036e6ff2127f6e86343f874945781fb9c38) +++ templates/bukkit/build.gradle.kts.ft (revision 9e08a525a4aca214c2186b5916787ad06c74299b) @@ -1,6 +1,7 @@ plugins { kotlin("jvm") version "${KOTLIN_VERSION}" id("com.github.johnrengelman.shadow") version "8.1.1" + id("xyz.jpenilla.run-paper") version "2.3.1" } group = "${BUILD_COORDS.groupId}" @@ -31,6 +32,15 @@ implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") } +tasks { + runServer { + // Configure the Minecraft version for our task. + // This is the only required configuration besides applying the plugin. + // Your plugin's jar (or shadowJar if present) will be used automatically. + minecraftVersion(${API_VERSION}) + } +} + val targetJavaVersion = ${JAVA_VERSION} kotlin { jvmToolchain(targetJavaVersion) Index: templates/velocity/build.gradle.ft =================================================================== --- templates/velocity/build.gradle.ft (revision 5ca2d036e6ff2127f6e86343f874945781fb9c38) +++ templates/velocity/build.gradle.ft (revision 9e08a525a4aca214c2186b5916787ad06c74299b) @@ -2,6 +2,7 @@ id 'java' id 'eclipse' id 'org.jetbrains.gradle.plugin.idea-ext' version '1.1.8' + id("xyz.jpenilla.run-velocity") version "2.3.1" } group = '${BUILD_COORDS.groupId}' @@ -24,6 +25,15 @@ annotationProcessor("com.velocitypowered:velocity-api:${VELOCITY_VERSION}") } +tasks { + runVelocity { + // Configure the Velocity version for our task. + // This is the only required configuration besides applying the plugin. + // Your plugin's jar (or shadowJar if present) will be used automatically. + velocityVersion(${VELOCITY_VERSION}) + } +} + def targetJavaVersion = ${JAVA_VERSION} java { toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion) Index: templates/velocity/build.gradle.kts.ft =================================================================== --- templates/velocity/build.gradle.kts.ft (revision 5ca2d036e6ff2127f6e86343f874945781fb9c38) +++ templates/velocity/build.gradle.kts.ft (revision 9e08a525a4aca214c2186b5916787ad06c74299b) @@ -7,6 +7,7 @@ id("com.github.johnrengelman.shadow") version "8.1.1" id("eclipse") id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.8" + id("xyz.jpenilla.run-velocity") version "2.3.1" } group = "${BUILD_COORDS.groupId}" @@ -28,6 +29,15 @@ implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") } +tasks { + runVelocity { + // Configure the Velocity version for our task. + // This is the only required configuration besides applying the plugin. + // Your plugin's jar (or shadowJar if present) will be used automatically. + velocityVersion(${VELOCITY_VERSION}) + } +} + val targetJavaVersion = 17 kotlin { jvmToolchain(targetJavaVersion)