Can't resolve dependency(scope=provided) from local maven repository


it looks like gradle doesn’t resolve dependencies which are stored inside the local maven repository and have the scope set to provided. We have the following setup:

pom of the dependency inside the local maven repository:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""

repositories in gradle

repositories {
      maven {
        credentials {
            username DOWNLOAD_REPO_USERNAME
            password DOWNLOAD_REPO_PASSWORD

It can’t resolve the jasper and coyote libraries. Do we make something wrong or is it a problem with gradle and local maven repositories?

That’s exactly the contract of ‘provided’; the client provides the dependency. That is, they do not get resolved transitively.

Thanks for your quick answer. I didn’t knew that they didn’t get resolved transitively.

No probs.