I will draft a java lib built under gradle. The lib will depend some common lib like commons-lang3
. To make compilation work, a specified version (suppose 1.0.1
) of commons-lang3
must be provided. But the lib consumer may already import a high version commons-lang3
(suppose 1.9.11
).
Finally, the application should run against commons-lang3
version 1.9.11
instead of 1.0.1
. So, what should I do in my build.gradle
?