/usr/share/gradle/lib/plugins/gradle-diagnostics-1.5.jar is in libgradle-plugins-java 1.5-2.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/gradle/lib/plugins/../../../java/gradle-diagnostics.jar