Why is dependency cache located under project root on Jenkins?

Try for yourself. You can read up on these concepts in the Gradle User Guide.