Skip to content

Conversation

@nayonsoso
Copy link
Collaborator

@nayonsoso nayonsoso commented Apr 9, 2025

관련 이슈

작업 내용

  1. 스프링에서 버전을 관리해주는 의존성은 버전을 지웠습니다.
    우리가 쓰는 3.1.5는 링크의 버전을 자동으로 사용한다고 합니다.
    버전을 명시하고 우리가 수동으로 관리나 최적화해야 할 것은 없는 듯 하여,..
    스프링 부트에서 자동으로 관리하게 했습니다.

  2. com.querydsl 그룹의 query dls 의존성이 보안 취약점(CVE-2024-49203)이 있어
    io.github.openfeign.querydsl 그룹으로 바꿨습니다.
    ref. https://dev-gallery.tistory.com/61

  3. 소스코드로 올라와있는 qclass를 지우고, 빌드 과정에서 생성되게 했습니다.
    빌드될 때 기본 위치(/build/generated/sources/annotationProcessor/java/main)에 생성되고,
    컴파일 시 포함되게 했습니다!

  4. 중복되거나 불필요한 의존성 삭제했습니다.
    어떻게 했냐면,..
    하나하나 없애고 clean하고 build하면서 오류 안나나 보고..
    의존성 검색해가면서 불필요한 것들은 없앴습니다 👴🏻👵🏻

특이 사항

리뷰 요구사항 (선택)

- QClass는 '수정할 수 있는 소스코드'가 아니므로, 소스코드에서 지웁니다.
- 빌드될 때 기본 위치(/build/generated/sources/annotationProcessor/java/main)에 자동으로 생성되게 합니다.
@nayonsoso nayonsoso self-assigned this Apr 9, 2025
@coderabbitai
Copy link

coderabbitai bot commented Apr 9, 2025

Walkthrough

  1. 종속성 추가:
    build.gradle 파일에 org.flywaydb, QueryDSL, Jakarta API, Spring Security, Hibernate Validator 등 새로운 라이브러리 의존성이 추가되었습니다.

  2. 종속성 제거:
    MySQL Connector, Hibernate Core, Spring Data Redis, Spring Security Core, Lettuce, AWS S3 SDK 및 불필요한 Jakarta Annotation 등의 기존 의존성이 삭제되었습니다.

  3. 의존성 수정:
    Lombok의 compileOnly 선언에서 버전 정보가 제거되었고, AWS S3 SDK 의존성이 수정되었습니다.

  4. 테스트 태스크 업데이트:
    tasks.named('test') 구문이 테스트 타입(Test)을 명시하도록 업데이트되었습니다.

  5. 애노테이션 프로세서 간소화:
    불필요한 애노테이션 프로세서 관련 코드 블록이 삭제되고, QueryDSL 클래스가 컴파일 클래스패스에 포함되었다는 주석이 추가되었습니다.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
build.gradle (1)

71-74: 3. 소스셋 구성 리뷰:
1. 자동 생성 소스 포함:
sourceSetsbuild/generated/sources/annotationProcessor/java/main 디렉토리를 추가하여, 빌드 시 자동 생성된 QueryDSL 소스 파일들이 정상적으로 컴파일에 포함되도록 설정한 점이 좋습니다.
2. 오타 수정 제안:
주석에 // To include QueryDLS classes in compile classpath라고 되어 있는데, 올바른 표기는 QueryDSL입니다. 해당 오타를 수정하면 더욱 깔끔할 것 같습니다.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0cf113d and 3e726a3.

⛔ Files ignored due to path filters (12)
  • src/main/generated/com/example/solidconnection/application/domain/QApplication.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/application/domain/QGpa.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/application/domain/QLanguageTest.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/entity/QCountry.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/entity/QInterestedCountry.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/entity/QInterestedRegion.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/entity/QRegion.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/siteuser/domain/QSiteUser.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/university/domain/QLanguageRequirement.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/university/domain/QLikedUniversity.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/university/domain/QUniversity.java is excluded by !**/generated/**
  • src/main/generated/com/example/solidconnection/university/domain/QUniversityInfoForApply.java is excluded by !**/generated/**
📒 Files selected for processing (1)
  • build.gradle (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
🔇 Additional comments (2)
build.gradle (2)

24-65: 1. 종속성 섹션 리뷰:
1. Flyway 의존성 추가:
Flyway 관련 의존성인 org.flywaydb:flyway-coreorg.flywaydb:flyway-mysql이 추가되어 데이터베이스 마이그레이션 관리가 향상되었습니다.
2. QueryDSL 의존성 변경:
보안 취약점(CVE-2024-49203)을 해결하기 위해 기존 QueryDSL 대신 io.github.openfeign.querydsl:querydsl-jpa:6.11 및 관련 annotationProcessor 의존성이 적용되었습니다.
3. Spring Security 의존성 추가:
org.springframework.security:spring-security-configorg.springframework.security:spring-security-web 의존성이 추가되어 보안 관련 설정이 강화되었습니다.
4. Lombok 의존성 개선:
compileOnly 'org.projectlombok:lombok'에서 버전 지정이 제거되어, Spring Boot가 의존성 관리를 수행하도록 개선되었습니다.
5. 기타 의존성 수정:
Hibernate Validator와 AWS SDK 의존성이 각각 org.hibernate.validator:hibernate-validatorcom.amazonaws:aws-java-sdk-s3:1.12.782로 추가/수정되어 최신 보안 및 기능 지원이 보장됩니다.

전체적으로 Gradle 의존성 정리 작업이 Spring Boot의 자동 의존성 관리 원칙에 부합하도록 잘 구성된 것으로 보입니다.


67-69: 2. 테스트 태스크 구성 리뷰:
1. JUnit 플랫폼 사용:
tasks.named('test', Test) { useJUnitPlatform() } 설정을 통해 테스트 실행 시 최신 JUnit 플랫폼을 활용하도록 구성되어 있는 점이 긍정적입니다.

이 구성이 최신 테스트 프레임워크의 기능을 온전히 활용할 수 있도록 돕습니다.

@nayonsoso
Copy link
Collaborator Author

cf. coderabbit 이 말하는거 거짓말입니다.
추가한 의존성 없습니다!

Copy link
Member

@wibaek wibaek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스프링 부트가 버전을 알아서 관리해주는군요. 좋습니다~

Copy link
Contributor

@Gyuhyeok99 Gyuhyeok99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3번 너무 좋네요 ㅎㅎ 고생하셨습니다!

@nayonsoso nayonsoso merged commit e6d7d68 into solid-connection:develop Apr 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gradle 의존성을 정리한다.

3 participants