From f9aa4bdff32f4f433d3e9a291d1d05b24e54b132 Mon Sep 17 00:00:00 2001 From: belljun3395 <195850@jnu.ac.kr> Date: Sat, 8 Jun 2024 19:54:57 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20API=20=EB=AA=A8=EB=93=88=EC=9D=84=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=ED=95=A9=EB=8B=88=EB=8B=A4=20=20(#20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: api 모듈 추가 * feat: api 모듈 spring starter 추가 --- api/build.gradle.kts | 5 +++++ api/src/main/kotlin/com/few/ApiMain.kt | 11 +++++++++++ build.gradle.kts | 2 +- settings.gradle.kts | 2 ++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 api/build.gradle.kts create mode 100644 api/src/main/kotlin/com/few/ApiMain.kt diff --git a/api/build.gradle.kts b/api/build.gradle.kts new file mode 100644 index 000000000..d5ed1bf97 --- /dev/null +++ b/api/build.gradle.kts @@ -0,0 +1,5 @@ +dependencies { + /** spring starter */ + implementation("org.springframework.boot:spring-boot-starter-webflux") + implementation("org.springframework.boot:spring-boot-starter-actuator") +} \ No newline at end of file diff --git a/api/src/main/kotlin/com/few/ApiMain.kt b/api/src/main/kotlin/com/few/ApiMain.kt new file mode 100644 index 000000000..16639fe6e --- /dev/null +++ b/api/src/main/kotlin/com/few/ApiMain.kt @@ -0,0 +1,11 @@ +package com.few + +import org.springframework.boot.autoconfigure.SpringBootApplication +import org.springframework.boot.runApplication + +@SpringBootApplication +class ApiMain + +fun main(args: Array) { + runApplication(*args) +} diff --git a/build.gradle.kts b/build.gradle.kts index 3de94c155..f2fbb86ca 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -79,7 +79,7 @@ subprojects { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor") implementation("io.projectreactor.kotlin:reactor-kotlin-extensions") implementation("com.fasterxml.jackson.module:jackson-module-kotlin") - + /** test **/ testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("io.mockk:mockk:${DependencyVersion.MOCKK}") diff --git a/settings.gradle.kts b/settings.gradle.kts index 31f3d2d97..0337df988 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1 +1,3 @@ rootProject.name = "few" + +include("api")