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,