James Kyle
09/05/2025, 6:33 PMimplementation(platform(project(':path:to-platform')))
Is there a way, other than enabling allowDependencies , to enforce a verison across all subpackages for another project without specifying each one individually? Like take jackson suite of packages or awssdk? Something similar to the bom constraint pattern you can use implementation(platform('com.fasterxml.jackson:jackson-bom:2.15.2'))James Kyle
09/05/2025, 6:39 PMapi(platform('com.fasterxml.jackson:jackson-bom:2.15.2'))Vampire
09/06/2025, 10:06 AMJames Kyle
09/06/2025, 2:41 PMdependencies {
api(platform('com.fasterxml.jackson:jackson-bom:2.15.2'))
}
Would add that dependency to all subprojects that include our project platform. As contrasted with the constraint {} pattern which only constrains the version such that the dependency must be explicitly added in the subproject itself.
So we want to avoid this sort of global dependency injection, while constraining the versions of explicitly added packages in that subproject.Vampire
09/07/2025, 7:54 PM