-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade Gradle/Java/Spring Boot and refactor S3 configuration #270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f7c02ac
88c7881
c2df32f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π§© Analysis chainπ Script executed: #!/bin/bash
# Explore gradle and build configuration files
echo "=== Searching for build configuration files ==="
find . -maxdepth 3 -type f \( -name "build.gradle*" -o -name "settings.gradle*" -o -name "gradle.properties" \) | head -20Repository: GDGoCINHA/24-2_GDGoC_Server Length of output: 151 π Script executed: #!/bin/bash
# Check for Spring Boot version and plugins in build files
echo "=== Examining build configuration ==="
find . -maxdepth 3 -type f -name "build.gradle*" -exec echo "File: {}" \; -exec head -50 {} \;Repository: GDGoCINHA/24-2_GDGoC_Server Length of output: 1190 π Web query:
π‘ Result: Short summary β what changed in Gradle 9.1.0 that can break Java / Spring Boot builds, and what to do
If you want, I can:
Citations:
π Web query:
π‘ Result: Short answer: Spring Boot 3.5.9 does not officially list Gradle 9.1.0 as a supported build tool β the 3.5.x docs specify Gradle 7.x and 8.x as the supported ranges. Gradle 9 support was introduced with the Spring Boot 4.x line, so Gradle 9.x is officially supported starting in 4.0.0. [1][2][3] Recommendation: use a Gradle 8.x wrapper (one of the 8.x versions the 3.5 docs call out) for guaranteed support with Spring Boot 3.5.9; you can try Gradle 9.1.0 (it may work thanks to Gradle backward compatibility) but it would be unsupported β test your build and CI thoroughly if you go that route. [1][2][3] Sources:
Gradle 9.1.0μ Spring Boot 3.5.9μ 곡μμ μΌλ‘ λ―Έμ§μλλ―λ‘ νΈνμ± κ²μ¦μ΄ νμμ λλ€. Spring Boot 3.5.9λ Gradle 7.x(7.5+)μ 8.xλ§ κ³΅μ μ§μνλ©°, Gradle 9.x μ§μμ Spring Boot 4.0.0λΆν° μΆκ°λμμ΅λλ€. νμ¬ μ€μ μ Gradle 9.1.0 + Spring Boot 3.5.9 μ‘°ν©μ 곡μμ μΌλ‘ λ―Έμ§μλ©λλ€. λν νλ‘μ νΈμ Java 25 μ€μ μ Gradle 9.1.0κ³Ό Kotlin νλ¬κ·ΈμΈμμ νΈνμ± λ¬Έμ κ° λ³΄κ³ λμμΌλ―λ‘ μ£Όμκ° νμν©λλ€. λ€μ μ€ νλλ₯Ό κΆμ₯ν©λλ€:
νμ¬ μ‘°ν©μΌλ‘ μ§ννλ €λ©΄ μ 체 λΉλ, ν μ€νΈ, bootJar/bootRunμ ν¬ν¨ν μμ ν CI κ²μ¦μ΄ νμμ λλ€. |
||
| networkTimeout=10000 | ||
| validateDistributionUrl=true | ||
| zipStoreBase=GRADLE_USER_HOME | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package inha.gdgoc.global.config.s3; | ||
|
|
||
| import lombok.Getter; | ||
| import lombok.Setter; | ||
| import org.springframework.boot.context.properties.ConfigurationProperties; | ||
| import org.springframework.stereotype.Component; | ||
|
|
||
| @Getter | ||
| @Setter | ||
| @Component | ||
| @ConfigurationProperties("app.s3") | ||
| public class S3Properties { | ||
| private String bucket; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Script executed:
Repository: GDGoCINHA/24-2_GDGoC_Server
Length of output: 7703
π Script executed:
Repository: GDGoCINHA/24-2_GDGoC_Server
Length of output: 4011
π Script executed:
Repository: GDGoCINHA/24-2_GDGoC_Server
Length of output: 4846
π Script executed:
Repository: GDGoCINHA/24-2_GDGoC_Server
Length of output: 1186
π Script executed:
Repository: GDGoCINHA/24-2_GDGoC_Server
Length of output: 1568
π Script executed:
Repository: GDGoCINHA/24-2_GDGoC_Server
Length of output: 715
OpenFeign fork λ§μ΄κ·Έλ μ΄μ μ μ μ νλ©°, Jakarta API μμ‘΄μ± κ΅¬μ±μ μ 리νμΈμ.
OpenFeign fork(
io.github.openfeign.querydsl)λ‘μ λ§μ΄κ·Έλ μ΄μ μ Spring Boot 3.5.9μ Jakarta μꡬμ¬νμ λ§μ‘±νλ μ¬λ°λ₯Έ μ νμ λλ€. μ½λμμ QueryDSLμ΄ μ μμ μΌλ‘ μλνκ³ μμ΅λλ€.λ€λ§ Jakarta API μμ‘΄μ± μ μΈμ λ¬Έμ κ° μμ΅λλ€:
jakarta.persistence-apiλ μν°ν° ν΄λμ€μμ λ°νμμ μ¬μ©λμ§λ§(@Entity,@Table,@Columnλ±),compileOnlyλ‘ μ μΈλμ΄ μμ΅λλ€.spring-boot-starter-data-jpaκ°jakarta.persistenceλ₯Ό λ°νμμ μ΄λ―Έ μ 곡νλ―λ‘ μλνμ§λ§, ꡬμ±μ΄ νΌλμ€λ½μ΅λλ€.κ°μ λ°©μ:
jakarta.persistence-apiλ₯Ό μ κ±°νκ³spring-boot-starter-data-jpaμ μΆμ΄μ μμ‘΄μ±μλ§ μμ‘΄νκ±°λcompileOnlyλ₯ΌimplementationμΌλ‘ λ³κ²½νμ¬ λ°νμ νμμ±μ λͺ νν νκ³ μ£Όμμ μμ νμΈμ.π€ Prompt for AI Agents