Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20686

Why isn't Gradle searching all repositories?

$
0
0

This block calls setUrl(...) four times, the fourth one wins.

maven
    {
        url = project.uri('https://repository.cloudera.com/artifactory/libs-release-local')
        url = project.uri('https://repo.maven.apache.org/maven2')
        url = project.uri('https://oss.sonatype.org/content/repositories/snapshots/')
        url = project.uri('https://repo1.maven.org/maven2/')
    }

You should change to

maven { url = 'https://repository.cloudera.com/artifactory/libs-release-local' } 
maven { url = 'https://repo.maven.apache.org/maven2' } 
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/'} 
maven { url = 'https://repo1.maven.org/maven2/' }

Viewing all articles
Browse latest Browse all 20686

Trending Articles