Skip to content

Conversation

jerryshao
Copy link
Contributor

What changes were proposed in this pull request?

This PR improves the gradle build file to use gradle catalog mechanism to centralize the dependency and plugin versions. Also removes some redundant codes.

Why are the changes needed?

Currently there's no centralized version control place for project, this will easily lead to dependency chaos. After some investigation, we choose to use gradle's default catalog mechanism to manage all the versions in a central place.

Fix: #17

Does this PR introduce any user-facing change?

NA

How was this patch tested?

Local manual test.

@jerryshao jerryshao requested review from JunpingDu and xunliu May 17, 2023 07:58
@jerryshao jerryshao self-assigned this May 17, 2023
@jerryshao jerryshao added the enhancement New feature or request label May 17, 2023
@jerryshao
Copy link
Contributor Author

@xunliu please help to review this.

Copy link
Member

@xunliu xunliu left a comment

Choose a reason for hiding this comment

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

I fork jerryshao:issue-17 to local, Build successful!

./gradlew build
Invalid Java installation found at '/Users/liuxun/Netease/jdk-11.0.12.jdk/Contents/Home' (Maven Toolchains). It will be re-checked in the next build. This might have performance impact if it keeps failing. Run the 'javaToolchains' task for more details.
<======-------> 52% EXECUTING [1m 52s]
> :schema:generateProto > Resolve files of :schema:protobufToolsLocator_protoc > protoc-3.17.3-osx-x86_64.exe > 1 MiB/11.9 MiB downloaded
> IDLE
^C%                                                                                                                                                   liuxun@MacBook-Pro unified-catalog % 
liuxun@MacBook-Pro unified-catalog % 
liuxun@MacBook-Pro unified-catalog % 
liuxun@MacBook-Pro unified-catalog % 
liuxun@MacBook-Pro unified-catalog % ./gradlew build
Starting a Gradle Daemon (subsequent builds will be faster)

BUILD SUCCESSFUL in 8m 6s
16 actionable tasks: 6 executed, 1 from cache, 9 up-to-date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] Refactor the gradle build file to unify all the dependencies
2 participants