Hello guys, I have a gradle multi module project, where module A depends on module B, and module B depends on module C.
I have in module C implemented a library. How can module A access to this library implemented in module C
not kotlin but kotlin colored 1
c
Chris Lee
09/03/2023, 9:02 PM
have Project A depend on Project C directly; or, have Project B expose Project C as
api
configuration dependency.
b
brabo-hi
09/03/2023, 9:10 PM
Working in used option B. Thanks
r
Rob Elliot
09/04/2023, 11:14 AM
Option A is good practice. Anything Project A directly depends on at compile time should be explicitly declared as a dependency of Project A.
Applying the Dependency Analysis Gradle Plugin is a good way to maintain good practice here.