From d316a4805eee883d618cf321f58aa74c079f17d0 Mon Sep 17 00:00:00 2001 From: ulfrxdev Date: Fri, 24 Apr 2026 18:22:09 +0200 Subject: [PATCH] refactor(01-03): apply recipe.jvm.server + recipe.quality to server module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replaces alias(kotlinJvm) + alias(ktor) + application with id("recipe.jvm.server") + id("recipe.quality") — application plugin now applied by the convention - Removes per-module dep lines (logback, ktor-serverCore, ktor-serverNetty, ktor-serverTestHost, kotlin-testJunit) — all bundled in recipe.jvm.server - Keeps module-only config: group/version coordinates, application { mainClass.set } + applicationDefaultJvmArgs, implementation(projects.shared) - File shrinks 23 -> 18 lines; no version literals leak --- server/build.gradle.kts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/server/build.gradle.kts b/server/build.gradle.kts index 76a7a3d..01c8d0c 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -1,11 +1,11 @@ plugins { - alias(libs.plugins.kotlinJvm) - alias(libs.plugins.ktor) - application + id("recipe.jvm.server") + id("recipe.quality") } group = "dev.ulfrx.recipe" version = "1.0.0" + application { mainClass.set("dev.ulfrx.recipe.ApplicationKt") @@ -15,9 +15,4 @@ application { dependencies { implementation(projects.shared) - implementation(libs.logback) - implementation(libs.ktor.serverCore) - implementation(libs.ktor.serverNetty) - testImplementation(libs.ktor.serverTestHost) - testImplementation(libs.kotlin.testJunit) -} \ No newline at end of file +}