Skip to content

Add default module dependencies to convention plugins - #343

Merged
fornewid merged 2 commits into
developfrom
convention-default-dependencies
Oct 4, 2026
Merged

fornewid merged 2 commits into
developfrom
convention-default-dependencies

Conversation

@fornewid

@fornewid fornewid commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Convention plugins now add the dependencies that most modules declared by hand:

  • moop.android.library and moop.android.application add implementation(project(":core:model")).
  • The new moop.android.feature applies moop.android.library and moop.android.hilt, and adds implementation(project(":data:repository:api")). The 7 feature/*/impl modules use it instead of moop.android.library + moop.android.hilt; the feature/*/api modules keep moop.android.library.

The explicit declarations these defaults cover are removed: projects.core.model from 17 Android modules (5 of which didn't use it) and projects.data.repository.api from 4 feature impl modules. The plain-Kotlin data/database/api and data/settings/api keep their projects.core.model dependency.

Verification

  • All 32 Android modules compile (debug main, unit test and androidTest), and so do the 6 JVM modules. Hilt KSP still runs in all 7 feature impl modules, and :app:hiltJavaCompileDebug passes.
  • ./gradlew dependencyGuard manifestShield proguardShieldFast moduleRules passes, and ./gradlew moduleRulesBaseline leaves module-rules.txt unchanged.

πŸ€– Generated with Claude Code

https://claude.ai/code/session_01Upxj1FvQeDpycupKdPQHUZ

fornewid and others added 2 commits October 4, 2026 11:27
moop.android.library and moop.android.application add :core:model,
and the new moop.android.feature (used by the feature/*/impl modules)
applies moop.android.library and adds :data:repository:api. Drop the
explicit declarations these defaults now cover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Upxj1FvQeDpycupKdPQHUZ
All seven feature impl modules use Hilt, so the feature convention
applies moop.android.hilt and the modules drop their own declaration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Upxj1FvQeDpycupKdPQHUZ
@fornewid
fornewid merged commit 087c9ab into develop Oct 4, 2026
1 check passed
@fornewid
fornewid deleted the convention-default-dependencies branch October 4, 2026 03:17
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.

1 participant