This message was deleted.
# community-support
s
This message was deleted.
1
e
I don't understand. if users of X are not affected, they can choose different versions of X's dependencies, so what are you trying to enforce?
j
Trying to enforce the versions for compilation and testImplementation of X. But users of X should still be free to pick whatever version they like.
c
you can use
enforcedPlatform
when declaring the dependency in any given configuration (compilation, testImplementation as you noted). Other consumers of the module can choose
platform
or
enforcedPlatform
as they see fit.
j
ah cool, so I do compileOnly(enforcedPlatform and testImplementation(enforcedPlatform( and then leave it at that. That makes sense