Skip to content
Sergio del Amo edited this page Aug 22, 2024 · 2 revisions

How to resolve a dependency published to Maven Local

You may have to modify settings.gradle and add:

dependencyResolutionManagement {
    repositories {
        mavenCentral()
        mavenLocal {
            mavenContent {
                snapshotsOnly()
            }
        }
    }
}

and in the base script of the module e.g. buildSrc/src/main/groovy/io.micronaut.build.internal.aws-base.gradle

repositories {
    mavenCentral()
    mavenLocal() {
        mavenContent {
            snapshotsOnly()
        }
    }
}
Clone this wiki locally