GoogleCloudPlatform / artifact-registry-maven-tools

Apache License 2.0
24 stars 22 forks source link

Gradle: Not a supported repository protocol 'artifactregistry' in settings.gradle #90

Closed kikoso closed 1 year ago

kikoso commented 1 year ago

Hi folks,

There was a very similar issue reported in https://github.com/GoogleCloudPlatform/artifact-registry-maven-tools/issues/40. Apparently, adding the repository to settings.gradle still raises this error.

Would it be possible to extend a fix to support also the repository URL in settings.gradle? This can be useful in certain projects, specifically Android ones can make extensive usage of this file.

How to reproduce it:

Move the repository URL to this block in the settings.gradle file:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
         maven {
            url "artifactregistry://us-west2-maven.pkg.dev/gmp-artifacts/maps"
        }
    }
}
PPrydorozhnyi commented 1 year ago

hey @kikoso, I think the same issue was raised in ticket #71. you can check WA there.

kikoso commented 1 year ago

Hi @PPrydorozhnyi! Seems to be exactly the same issue, closing this in favour of the previous one.