@@ -27,18 +27,14 @@ dependencyManagement {
2727dependencies {
2828 implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
2929 implementation ' org.springframework.boot:spring-boot-starter-web'
30- implementation ' org.springframework.cloud:spring-cloud-starter-function-web' // ✅ Spring Cloud Function 웹 스타터
31- // 🔥 Azure 라이브러리 버전 업그레이드
32- implementation ' com.microsoft.azure.functions:azure-functions-java-library:2.0.1'
33- // 🔥 Spring Cloud Function 버전 일치
30+ implementation ' org.springframework.cloud:spring-cloud-starter-function-web'
3431 implementation ' org.springframework.cloud:spring-cloud-function-adapter-azure:4.0.4'
32+ implementation ' com.microsoft.azure.functions:azure-functions-java-library:2.0.1'
3533
3634 developmentOnly ' org.springframework.boot:spring-boot-devtools'
3735 testImplementation ' org.springframework.boot:spring-boot-starter-test'
3836 testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
3937
40- implementation ' com.microsoft.azure.functions:azure-functions-java-library:1.4.2'
41-
4238 implementation ' org.postgresql:postgresql:42.6.0'
4339 runtimeOnly ' org.postgresql:postgresql'
4440
@@ -50,19 +46,23 @@ dependencies {
5046 annotationProcessor ' org.projectlombok:lombok:1.18.30'
5147
5248 implementation ' org.springframework.boot:spring-boot-starter-webflux'
49+
50+ // 🔥 Reflections 버전 고정
51+ implementation ' org.reflections:reflections:0.10.2'
5352}
5453
54+ // JAR 설정 (단일 블록으로 통합)
5555jar {
56- archiveBaseName. set(" Optimo_User_BE" )
57- archiveVersion. set(" 0.0.1-SNAPSHOT" )
56+ archiveBaseName = " Optimo_User_BE"
57+ archiveVersion = " 0.0.1-SNAPSHOT"
58+ archiveClassifier = ' ' // plain JAR 비활성화
5859}
5960
6061tasks. named(" azureFunctionsPackage" ) {
6162 dependsOn(" jar" )
6263 ignoreFailures = false
6364}
6465
65-
6666tasks. named(' test' ) {
6767 useJUnitPlatform()
6868}
@@ -73,33 +73,18 @@ azurefunctions {
7373 appName = ' optimo-user'
7474 region = ' Korea Central'
7575 runtime {
76- os = ' windows '
76+ os = ' linux ' // Windows -> Linux로 변경
7777 javaVersion = ' 17'
7878 }
7979 appSettings {
8080 FUNCTIONS_EXTENSION_VERSION = ' ~4'
8181 FUNCTIONS_WORKER_RUNTIME = ' java'
8282 }
83-
84- functions = [
85- ' org.inhahackers.optmo_user_be.function.UserFunction' ,
86- ' org.inhahackers.optmo_user_be.function.IncreaseElecFunction' ,
87- ' org.inhahackers.optmo_user_be.function.OAuthUserFunction' ,
88- ' org.inhahackers.optmo_user_be.function.JWTUserFunction'
89- ]
90- }
91-
92- // 2. JAR 생성 방식 단일화
93- jar {
94- archiveBaseName. set(" Optimo_User_BE" )
95- archiveVersion. set(" 0.0.1-SNAPSHOT" )
96- // 🔥 plain JAR 비활성화
97- archiveClassifier = ' '
9883}
9984
100- // 3. Reflections 버전 고정 ( 문제 해결 핵심)
85+ // 🔥 함수 클래스 스캔 문제 해결을 위한 구성
10186configurations. all {
10287 resolutionStrategy {
103- force ' org.reflections:reflections:0.10.2' // 안정적인 버전
88+ force ' org.reflections:reflections:0.10.2'
10489 }
10590}
0 commit comments