Skip to content

Commit 5f4b246

Browse files
committed
fix: workflows fix
1 parent 17cc1d0 commit 5f4b246

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/main_optimo-user.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
- name: Package Azure Functions
4646
shell: pwsh
4747
run: |
48-
.\gradlew azureFunctionsPackage --stacktrace
48+
./gradlew azureFunctionsScan --console=plain
49+
Get-Content build/azure-functions/${{ env.AZURE_FUNCTIONAPP_NAME }}/**/function.json
4950
5051
- name: Login to Azure
5152
uses: azure/login@v2

build.gradle

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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'
@@ -56,6 +59,7 @@ jar {
5659

5760
tasks.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

Comments
 (0)