Resolution of dynamic versions for related artifacts

This is a generic question about artifact resolution.

I have a project X which depends on 2 libraries A and B which are built from the same project P (that is, building P deploys libraries A and B to Artifactory).

The project X defines dynamic versions (’+’) on A and B. When building X, Gradle resolves a different versions for the libraries A and B (say 1.0.1 and 1.1.2).

Is there a way to tell Gradle to use the same resolved version for the libraries A and B since they relate to the same logical project ?

This chapter “ Modelling releaseable units” seems related but only deals with statically assigned dependency versions.

Can this work with dynamic dependency versions ?