Skip to content

Exclude unused libraries from 'com.android.tools:sdk-common', reduce gradle-plugin size#896

Merged
egorikftp merged 1 commit intomainfrom
task/gradle/size
Feb 24, 2026
Merged

Exclude unused libraries from 'com.android.tools:sdk-common', reduce gradle-plugin size#896
egorikftp merged 1 commit intomainfrom
task/gradle/size

Conversation

@egorikftp
Copy link
Copy Markdown
Member

@egorikftp egorikftp commented Feb 23, 2026

telegram-cloud-document-2-5251451487707502968

📝 Changelog

If this PR introduces user-facing changes, please update the relevant Unreleased section in changelogs:

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 23, 2026

Walkthrough

A new Kotlin extension function excludeAndroidBuildTools() is added to Gradle's Configuration type, which consolidates exclusions for Android Build Tools and related dependencies. This function is then applied to the implementation configurations in both the Gradle plugin and IDEA plugin build files, replacing individual exclude statements. The changelog documents a corresponding reduction in the Gradle plugin size from 46MB to 10MB. The refactoring centralizes dependency exclusion logic while maintaining existing exclusions for other libraries.

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive PR includes changelog template with one checkbox marked (Gradle Plugin), but description lacks implementation details explaining the technical approach. Add a summary of the changes made (e.g., new excludeAndroidBuildTools() function, which dependencies are excluded, and expected size reduction) to clarify the implementation approach.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: excluding unused libraries to reduce gradle-plugin size, which directly matches the changeset modifications.

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

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch task/gradle/size

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.

@egorikftp egorikftp merged commit 44fbb85 into main Feb 24, 2026
6 checks passed
@egorikftp egorikftp deleted the task/gradle/size branch February 24, 2026 05:13
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.

2 participants