Skip to content

New standard way of declaring the repository settings #1161

Open
@mobilekosmos

Description

@mobilekosmos

New Feature / Enhancement Checklist

There is a new standard way of declaring the repository settings:
https://developer.android.com/studio/releases/gradle-plugin?hl=nl#settings-gradle

Following block should be removed from root's build.gradle:

repositories {
    google()
    mavenCentral()
}

Instead following block added to settings.gradle:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}

I will add a PR based on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions