@@ -28,7 +28,10 @@ dependencies {
2828 implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
2929 implementation ' org.springframework.boot:spring-boot-starter-web'
3030 implementation ' org.springframework.cloud:spring-cloud-starter-function-web' // ✅ Spring Cloud Function 웹 스타터
31- implementation ' org.springframework.cloud:spring-cloud-function-adapter-azure:4.0.0' // ✅ Azure 어댑터
31+ // 🔥 Azure 라이브러리 버전 업그레이드
32+ implementation ' com.microsoft.azure.functions:azure-functions-java-library:2.0.1'
33+ // 🔥 Spring Cloud Function 버전 일치
34+ implementation ' org.springframework.cloud:spring-cloud-function-adapter-azure:4.0.4'
3235
3336 developmentOnly ' org.springframework.boot:spring-boot-devtools'
3437 testImplementation ' org.springframework.boot:spring-boot-starter-test'
5659
5760tasks. named(" azureFunctionsPackage" ) {
5861 dependsOn(" jar" )
62+ ignoreFailures = false
5963}
6064
6165
@@ -69,11 +73,33 @@ azurefunctions {
6973 appName = ' optimo-user'
7074 region = ' Korea Central'
7175 runtime {
72- os = ' linux '
76+ os = ' windows '
7377 javaVersion = ' 17'
7478 }
7579 appSettings {
7680 FUNCTIONS_EXTENSION_VERSION = ' ~4'
7781 FUNCTIONS_WORKER_RUNTIME = ' java'
7882 }
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 = ' '
98+ }
99+
100+ // 3. Reflections 버전 고정 (문제 해결 핵심)
101+ configurations. all {
102+ resolutionStrategy {
103+ force ' org.reflections:reflections:0.10.2' // 안정적인 버전
104+ }
79105}
0 commit comments