plugins { application } // main メソッドが定義されているクラス application { mainClass.set("Main") } tasks.named("run") { standardInput = System.`in` } repositories { mavenCentral() } tasks.withType { options.encoding = "UTF-8" } dependencies { compileOnly("jakarta.servlet:jakarta.servlet-api:6.1.0") implementation("org.eclipse.jetty:jetty-server:12.1.8") implementation("org.eclipse.jetty.ee10:jetty-ee10-servlet:12.1.8") implementation("org.slf4j:slf4j-simple:2.0.17") }