From 25d7a3d755cdb5e0fa28624d5485c14092229a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=8F=84=EA=B2=BD?= <125863754+rudeh2926@users.noreply.github.com> Date: Tue, 9 Jan 2024 23:01:27 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20::=20(148)=20setting=20apache=20?= =?UTF-8?q?poi=20(#149)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add APACHE_POI_VERSION * Add Dependencies APACHE_POI * ktlint * Add build.gradle APACHE_POI --- buildSrc/src/main/kotlin/Dependencies.kt | 5 +++++ buildSrc/src/main/kotlin/DependencyVersions.kt | 2 ++ user-infrastructure/build.gradle.kts | 3 ++- .../com/xquare/v1userservice/user/router/UserHandler.kt | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt index f4267ce..b2000fc 100644 --- a/buildSrc/src/main/kotlin/Dependencies.kt +++ b/buildSrc/src/main/kotlin/Dependencies.kt @@ -1,4 +1,5 @@ object Dependencies { + // ktlint const val KTLINT = "com.pinterest:ktlint:${DependencyVersions.KTLINT_VERSION}" @@ -58,4 +59,8 @@ object Dependencies { // cloud config const val CLOUD_CONFIG = "org.springframework.cloud:spring-cloud-config-client" + + // apache poi + const val APACHE_POI = "org.apache.poi:poi:${DependencyVersions.APACHE_POI_VERSION}" + const val APACHE_POI_OOXML = "org.apache.poi:poi-ooxml${DependencyVersions.APACHE_POI_OOXML}" } diff --git a/buildSrc/src/main/kotlin/DependencyVersions.kt b/buildSrc/src/main/kotlin/DependencyVersions.kt index fb4b898..5f29494 100644 --- a/buildSrc/src/main/kotlin/DependencyVersions.kt +++ b/buildSrc/src/main/kotlin/DependencyVersions.kt @@ -13,4 +13,6 @@ object DependencyVersions { const val MOCKK_VERSION = "1.12.3" const val SPRING_MOCKK_VERSION = "3.1.1" const val NIMBUS_VERSION = "9.21" + const val APACHE_POI_VERSION = "5.0.0" + const val APACHE_POI_OOXML = "5.0.0" } diff --git a/user-infrastructure/build.gradle.kts b/user-infrastructure/build.gradle.kts index d1af1d0..5e57ea4 100644 --- a/user-infrastructure/build.gradle.kts +++ b/user-infrastructure/build.gradle.kts @@ -35,7 +35,8 @@ dependencies { kapt(Dependencies.CONFIGURATION_PROCESSOR) implementation(Dependencies.REACTIVE_REDIS) implementation(Dependencies.CLOUD_CONFIG) - + implementation(Dependencies.APACHE_POI) + implementation(Dependencies.APACHE_POI_OOXML) implementation(project(":user-domain")) } diff --git a/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/UserHandler.kt b/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/UserHandler.kt index 680953a..51891f8 100644 --- a/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/UserHandler.kt +++ b/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/UserHandler.kt @@ -133,7 +133,7 @@ class UserHandler( accountId = this.accountId, password = this.password, name = this.name, - profileFileName = this.profileFileName?: "", + profileFileName = this.profileFileName ?: "", classNum = this.classNum, grade = this.grade, num = this.num,