Hi,
I am creating my first platform
dependency in Gradle, and it seems to work. However, I am sure I saw something somewhere in the Gradle documentation saying that if I define my platform as:
dependencies {
constraints {
api project(':foo')
api project(':bar')
}
}
then both modules :foo
and :bar
should also declare a dependency back to the platform:
dependencies {
implementation platform(project(':platform'))
...
}
I cannot find where I saw this advice now, and so I am wondering if I initially misread something.
Can anyone either confirm or deny this understanding please?
Thanks,
Chris
Edit: I think I might have been remembering this article…