Skip to content

fix(build): netty 보안 하한을 AGP UTP 설정까지 확장 — 릴리스 PR dependency-review high 8건 해소 (closes 1058) [base: develop] - #1060

Merged
OnlyReadOneBook merged 1 commit into
developfrom
fix/1058
Aug 25, 2026
Merged

OnlyReadOneBook merged 1 commit into
developfrom
fix/1058

Conversation

@OnlyReadOneBook

Copy link
Copy Markdown
Collaborator

Closes #1058

무엇이 문제였나

#1003 이 #975~#980 을 닫으며 netty 를 4.1.137.Final 로 올렸지만, 하한이 루트 buildscript classpath 에만 걸려 있었다. AGP 가 만드는 UTP 설정 2종은 그 밖이라 여전히 구버전을 해석하고 있었고, develop 스냅샷에 남은 이 구버전이 릴리스 PR #1025 의 Review dependency changes 를 high 8건(netty-codec·netty-codec-http·netty-codec-http2·netty-handler 의 4.1.93·4.1.110)으로 실패시킨다.

configuration 적용 전 유입 경로
unified-test-platform-core 4.1.93.Final com.google.testing.platform:core:0.0.9-alpha04 → io.grpc:grpc-netty:1.57.2
unified-test-platform-android-test-plugin-host-emulator-control 4.1.110.Final com.android.tools.emulator:proto:32.2.1 → io.grpc:grpc-netty:1.69.1
루트 buildscript.classpath 4.1.137.Final BOM 핀 정상 동작

무엇을 했나

securityFloors 목록에 netty 11개 모듈을 평범한 constraint 로 추가했다. #1003 이 «BOM 을 allprojects 하한에 걸면 AGP 의 android-reverse-meta-data usage 가 platform 변형을 못 찾아 리졸브가 깨진다» 며 루트로 물러난 제약은 platform() 에만 해당한다 — 일반 constraint 는 그 문제를 일으키지 않는다(아래 실측에서 리졸브 오류 0건).

이 사실이 틀린 채로 남아 있던 주석 2곳(«netty 는 루트 buildscript classpath 에만 있고 전 프로젝트 실측 53건 전부 여기»)도 실측대로 고쳤다.

검증

전 프로젝트 × 전 configuration 을 실행 시점에 리졸브하는 스캔(init script)으로 실측했다. 설정 시점 리졸브는 Gradle 9 가 막고, AGP 의 UTP 설정은 뒤늦게 생겨 설정 시점 스캔으로는 애초에 안 잡힌다.

netty 해석 건수 4.1.137.Final 구버전(4.1.93·4.1.110) 리졸브 오류
적용 전 (develop efbb1256c) 584 12 572 0
적용 후 (이 브랜치) 584 584 0 0
  • ktlint — pre-commit 훅의 staged snapshot 검사 통과 (argument-list-wrapping 1차 반려 → 한 줄 한 항목으로 수정).
  • ./gradlew :app:compileDebugKotlin — BUILD SUCCESSFUL.
  • 시각 검증 skip — Compose 본문·디자인 토큰·리소스 변경이 없다. diff 는 build.gradle.kts 한 파일뿐.

리뷰어에게

루트 buildscript classpath 에만 BOM 을 걸어 둔 탓에 AGP 가 만드는
unified-test-platform-core(com.google.testing.platform:core -> grpc-netty 1.57.2)와
unified-test-platform-android-test-plugin-host-emulator-control
(com.android.tools.emulator:proto -> grpc-netty 1.69.1)은 여전히 4.1.93·4.1.110 을
해석하고 있었다. develop 스냅샷에 남은 이 구버전이 릴리스 PR #1025 의
dependency-review 를 high 8건으로 실패시킨다.

platform() BOM 은 android-reverse-meta-data usage 에서 변형을 못 찾아 리졸브를
깨뜨리지만 평범한 constraint 는 그렇지 않다. 전 프로젝트 × 전 configuration 을
실행 시점에 리졸브한 실측 — 적용 전 netty 584건 중 572건이 4.1.93·4.1.110,
적용 후 584건 전부 4.1.137.Final, 리졸브 오류 0건.

closes #1058
@OnlyReadOneBook
OnlyReadOneBook merged commit 7f058f1 into develop Aug 25, 2026
13 checks passed
@OnlyReadOneBook
OnlyReadOneBook deleted the fix/1058 branch August 25, 2026 03:36
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.

fix(build): netty 보안 하한이 AGP UTP 설정에 미적용 — 릴리스 PR dependency-review 가 high 8건으로 실패

2 participants