Dynamic version (Dependency management)

Hi,

I have 2 versions of jars in my grade repository like test-1.0.0.jar and test-2.0.0.jar.

When i create a war i have added the dependency as test-1.0.0 but test-2.0.0 is downloaded.

when i put gradle “sometask” dependencies, The below trace found in the console

— org.xxxxxx-test:1.0.0 -> 2.0.0

I need test-1.0.0.jar should be downloaded . Can anyone help me on this.

Regards Balu

Perhaps there is some other dependency that wants 2.0.0, and the higher version wins. ‘gradle dependencyInsight --dependency test’ will give more information.