I'm using the java-gradle-plugin. That explains it. So my dependency declaration is pointless anyway.
I'm assuming the work in Q4 will need a newer Gradle version to get this so I still have to upgrade.
Ill play with manually removing the dependency added by JavaGradlePlugin, otherwise will park it until that works complete.
Appreciate the response @Vampire