What is the recommended use of ClientModules?

What is an example of good use of ClientModule dependencies? What part of them is published with the Gradle Metadata?

https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.dsl.DependencyHandler.html#N1736B

There is no good example and we already considered to deprecate the concept. :slight_smile: But we left it in for no for builds that already use it.

Client modules are not published and that’s also a reason why you should not use them.

If you want to influence the transitive dependencies of another module and publish that, you should use dependency constraints with rich versions (possibly including strict versions) and, if it really fits the use case, dependencies with excludes.

1 Like