Is there any way to test my code against many different versions of the same dependency?

my code should work with other library. there is a number of different versions of that library in the maven central. i need to test my code against many different versions. is it possible using gradle?

It’s definitely possible, but not built-in. Unless you find a third-party plugin for this, you’d have to code it yourself. Starting with a configurable list of versions might be a bit easier.