Skip to content
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

[优化] 使用 Gradle Platform 统一管理项目依赖 #31

Open
ReaJason opened this issue Jan 23, 2025 · 0 comments
Open

[优化] 使用 Gradle Platform 统一管理项目依赖 #31

ReaJason opened this issue Jan 23, 2025 · 0 comments
Labels
enhancement New feature or request refactor some code taste not good

Comments

@ReaJason
Copy link
Owner

https://docs.gradle.org/current/userguide/platforms.html

Platforms are used to ensure that all dependencies in a project align with a consistent set of versions.

Platforms help you manage and enforce version consistency across different modules or libraries, especially > when you are working with a set of related dependencies that need to be kept in sync.

随着子模块越来越多,每个模块可能会使用到相同的依赖,因此为了简化依赖的编写(写版本号实在是太麻烦了),因此需要像 SpringBoot 一样的 dependency-manager 的东西来管理依赖,引入依赖将不再需要编写版本号,而 Gradle Platform 刚好能满足这种需求。

@ReaJason ReaJason added enhancement New feature or request refactor some code taste not good labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor some code taste not good
Projects
None yet
Development

No branches or pull requests

1 participant