Skip to content

Commit

Permalink
🔀 :: (148) setting apache poi (#149)
Browse files Browse the repository at this point in the history
* Add APACHE_POI_VERSION

* Add Dependencies APACHE_POI

* ktlint

* Add build.gradle APACHE_POI
  • Loading branch information
rudeh2926 authored Jan 9, 2024
1 parent 6633b1f commit 25d7a3d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
object Dependencies {

// ktlint
const val KTLINT = "com.pinterest:ktlint:${DependencyVersions.KTLINT_VERSION}"

Expand Down Expand Up @@ -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}"
}
2 changes: 2 additions & 0 deletions buildSrc/src/main/kotlin/DependencyVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion user-infrastructure/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 25d7a3d

Please sign in to comment.