Skip to content

chore: consolidate gradle config and publishing#470

Merged
hopeman15 merged 1 commit into
mainfrom
chore/gradle-cleanup
Apr 26, 2026
Merged

chore: consolidate gradle config and publishing#470
hopeman15 merged 1 commit into
mainfrom
chore/gradle-cleanup

Conversation

@hopeman15

@hopeman15 hopeman15 commented Apr 26, 2026

Copy link
Copy Markdown
Collaborator

Description

Cleans up redundancy across the per-module gradle files. Each module previously
duplicated Android library setup, the Maven Central publishing block, and the
Robolectric exclusion list. This consolidates them into shared locations:

  • gradle/libs.versions.toml — version catalog for all plugin and dependency versions.
  • Common Android library/application config (compileSdk, minSdk, JVM 17, compose,
    testOptions) moved to subprojects blocks in the root build script, applied
    via plugins.withId(...).
  • gradle/publishing.gradle.kts — Maven Central publishing, parameterized by
    artifactId/name/description and consumed via apply(from = ...).
  • gradle/robolectric.gradle.kts — Robolectric dependency with the standard
    exclusion list, consumed via apply(from = ...).

Net: -529 lines across module build files. Behavior preserved (verified via
make all and publishToMavenLocal with identical POMs).

Closes #113
Closes #114

UI

Not applicable.

Review checklist

  • PR is split into meaningful commits for the ease of reviewing
  • Tests have been written
  • Screenshots added (where applicable)
  • Appropriate labels have been applied

@hopeman15 hopeman15 enabled auto-merge (squash) April 26, 2026 15:17
- Add gradle/libs.versions.toml for plugin/dependency versions
- Move common Android library/application config (compileSdk,
  minSdk, JVM 17, compose, testOptions) to subprojects blocks
  in the root build script
- Extract shared Maven Central publishing into
  gradle/publishing.gradle.kts (parameterized by artifactId,
  name, description)
- Extract Robolectric + standard exclusion list into
  gradle/robolectric.gradle.kts

Net: -529 lines across module build files.

Closes #113, #114
@hopeman15 hopeman15 force-pushed the chore/gradle-cleanup branch from a62359b to afd0389 Compare April 26, 2026 15:24
@hopeman15 hopeman15 merged commit ee86be8 into main Apr 26, 2026
6 checks passed
@hopeman15 hopeman15 deleted the chore/gradle-cleanup branch April 26, 2026 15:29
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.

Gradle File Cleanup Publishing Cleanup

1 participant