Skip to content

Fix Gradle dependency and Java syntax in client-java guide#1285

Merged
ikhoon merged 1 commit intoline:mainfrom
junjunclub:fix-typos-official-website
Apr 3, 2026
Merged

Fix Gradle dependency and Java syntax in client-java guide#1285
ikhoon merged 1 commit intoline:mainfrom
junjunclub:fix-typos-official-website

Conversation

@junjunclub
Copy link
Copy Markdown
Contributor

Motivation:

The current client-java.html documentation contains outdated Gradle configuration and a syntax error in the Java code example.

image It uses the deprecated compile configuration, which is no longer supported in modern Gradle versions. image There is an unnecessary semicolon (;) in the ArmeriaCentralDogmaBuilder fluent API chain, which would cause a compilation error if copied directly.

Modifications:

Updated the Gradle dependency example to use implementation instead of the deprecated compile.

Removed the misplaced semicolon before the .build() method call in the Java code snippet.

Result:

Users can now follow the Java client guide without encountering compilation errors in either their Gradle build scripts or their Java source code.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 25, 2026

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 25, 2026

📝 Walkthrough

Walkthrough

The documentation for the Java client is updated to reflect the correct Gradle dependency configuration, changing compile to implementation for centraldogma-client-armeria. A minor formatting adjustment is made to example code comments.

Changes

Cohort / File(s) Summary
Documentation Update
site/src/sphinx/client-java.rst
Updated Gradle dependency configuration from compile to implementation for centraldogma-client-armeria; adjusted comment formatting in code example.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

defect

Suggested reviewers

  • trustin
  • ikhoon

Poem

🐰 A doc that needed mending so small,
From compile to implementation call,
With spaces aligned just right,
The example shines bright,
This fix helps Java users most of all! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description is directly related to the changeset, clearly explaining the motivation (outdated Gradle config and syntax error), modifications made (implementation instead of compile, removed semicolon), and expected results.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title accurately reflects the main changes: updating Gradle dependency configuration from compile to implementation, and fixing Java syntax issues in the client-java documentation guide.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@junjunclub junjunclub changed the title docs: fix Gradle dependency and Java syntax in client-java guide Fix Gradle dependency and Java syntax in client-java guide Mar 25, 2026
Copy link
Copy Markdown

@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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
site/src/sphinx/client-java.rst (1)

582-582: ⚠️ Potential issue | 🟡 Minor

Apply the same Gradle configuration fix here for consistency.

This line still uses the deprecated compile configuration, which is inconsistent with the fix applied at line 23. All Gradle dependency examples in the documentation should use implementation instead of compile to avoid build errors in modern Gradle versions.

📝 Proposed fix
-        compile 'com.linecorp.centraldogma:centraldogma-client-spring-boot3-starter:\ |release|\ '
+        implementation 'com.linecorp.centraldogma:centraldogma-client-spring-boot3-starter:\ |release|\ '
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@site/src/sphinx/client-java.rst` at line 582, Replace the deprecated Gradle
configuration used in the dependency declaration "compile
'com.linecorp.centraldogma:centraldogma-client-spring-boot3-starter:|release| '"
by changing the configuration keyword from compile to implementation so the
example matches the other fix and modern Gradle usage; update the dependency
line in the client-java.rst example to use implementation instead of compile.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@site/src/sphinx/client-java.rst`:
- Line 582: Replace the deprecated Gradle configuration used in the dependency
declaration "compile
'com.linecorp.centraldogma:centraldogma-client-spring-boot3-starter:|release| '"
by changing the configuration keyword from compile to implementation so the
example matches the other fix and modern Gradle usage; update the dependency
line in the client-java.rst example to use implementation instead of compile.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 896a5108-87e8-49db-bc2d-a1518f3c9813

📥 Commits

Reviewing files that changed from the base of the PR and between 4b32d6a and 760be4b.

📒 Files selected for processing (1)
  • site/src/sphinx/client-java.rst

Copy link
Copy Markdown
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

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

👍 👍

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.91%. Comparing base (e4d496c) to head (760be4b).
⚠️ Report is 72 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1285      +/-   ##
============================================
+ Coverage     68.82%   68.91%   +0.09%     
- Complexity     4730     5393     +663     
============================================
  Files           483      531      +48     
  Lines         20413    22937    +2524     
  Branches       2293     2582     +289     
============================================
+ Hits          14050    15808    +1758     
- Misses         5122     5694     +572     
- Partials       1241     1435     +194     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@ikhoon ikhoon left a comment

Choose a reason for hiding this comment

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

Thanks, @junjunclub!

@ikhoon ikhoon added this to the 0.82.0 milestone Apr 3, 2026
@ikhoon ikhoon merged commit 5d4f834 into line:main Apr 3, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants