Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Centralized Repository Declaration #106

Closed
hfhbd opened this issue Nov 26, 2022 · 0 comments · Fixed by #107
Closed

Support Centralized Repository Declaration #106

hfhbd opened this issue Nov 26, 2022 · 0 comments · Fixed by #107

Comments

@hfhbd
Copy link
Contributor

hfhbd commented Nov 26, 2022

Is your feature request related to a problem? Please describe.
Gradle adds incubating support to declare your repositories in your settings gradle file to secure your dependencies supply chain by only downloading dependencies from your declared repositories.

https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:centralized-repository-declaration

// settings.gradle.kts
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)

    repositories {
        mavenCentral()
        maven(url = "https://www.jetbrains.com/intellij-repository/releases")
        maven(url = "https://cache-redirector.jetbrains.com/intellij-dependencies")
        maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies/")
        maven(url = "https://maven.pkg.jetbrains.space/public/p/ktor/eap")
    }
}

Describe the solution you'd like
Add a check to not include custom repositories if FAIL_ON_PROJECT_REPOS is set

Describe alternatives you've considered
Forking and removing the code adding the repositories

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant