Retrofit GraphQL Build And Dependencies
What This Skill Produces
- A safe path for changing module dependencies or shared build logic.
- A map of where versions, plugins, Dokka, Spotless, and Android defaults are defined.
- Clear guidance on whether a change belongs in a module build file, the version catalog, or
buildSrc.
When To Use
- Adding or upgrading dependencies.
- Changing module relationships.
- Editing Dokka, Spotless, JDK, Android, publishing, or test conventions.
- Understanding how the converter, annotation, discovery, and model packages are wired.
Procedure
- Read the build map to find the owning file for the convention you want to change.
- If the change introduces or upgrades a dependency, add the version and alias in
gradle/libs.versions.tomlfirst. - If the behavior should apply to both modules, implement it in
buildSrcinstead of duplicating it in bothbuild.gradle.ktsfiles. - Remember that
:appis excluded from the Gradle build when theCIenvironment variable is set; only:libraryis built and tested in CI. - Keep Dokka, Spotless, and test behavior aligned with the shared configuration in
buildSrc. - When running Gradle locally, use the existing
jenv-gradle-low-ramskill if Java selection or memory pressure becomes an issue.
References
Source: AniTrend/retrofit-graphql — distributed by TomeVault.