George Davies
George Davies

Reputation: 85

Why won't gradle download this dependency from custom repository

I'm trying to download the DynamoDBLocal dependency from a custom repository.

Dependency: com.amazonaws:DynamoDBLocal:1.11.86

The following repository contains the dependency: https://s3-us-west-2.amazonaws.com/dynamodb-local/release

I've checked that both the pom and jar are accessible in the repository by manually visiting these urls:

I've added the repository to my build.gradle.kts file like so:

repositories {
    mavenCentral()
    jcenter()
    maven {
        url = uri("https://s3-us-west-2.amazonaws.com/dynamodb-local/release")
    }
}

I've added the test dependency like so:

testImplementation("com.amazonaws:DynamoDBLocal:1.11.86")

Now when I run a build I get the following error:

Could not find com.amazonaws:DynamoDBLocal:1.11.86

How can I get gradle to download this dependency correctly?

Upvotes: 0

Views: 578

Answers (1)

SergioGodoy
SergioGodoy

Reputation: 31

this works for me, I'm using gradle 7.4.

repositories {
    mavenCentral()
    maven {
        name "DynamoDB Local Release Repository"
        url "https://s3-us-west-2.amazonaws.com/dynamodb-local/release"
    }
}

...

testImplementation 'com.amazonaws:DynamoDBLocal:1.18.0'

Upvotes: 2

Related Questions