We have specified own nexus for plugins and depend...
# dependency-management
e
We have specified own nexus for plugins and dependencies in setting.gradle. However, I see gradle still tries to download groovy from the gradle.org. Why would it?
Is it possible that IDE does some modification? I just see some jetbrains.plugins.gradle.model in log.
v
Did you try to configure "fail on project repos"? Maybe you have applied some bad plugin that defines some repo. That would win over the settings defined repos with default settings.
The ticket you posted should just be when downloading the actual Gradle sources during IDE sync with Kotlin DSL
e
We have kotlin dsl code in project - for plugins and some code in the buildSrc
v
But you said it is downloading groovy, not Gradle sources. I might remember wrongly and it is also due to that issue. But I thought it should only be relevant for the Gradle sources download.
e
Added
Copy code
RepositoriesMode.FAIL_ON_PROJECT_REPOS
But I found that I can only add it for the module dependencies and can not find something similar for plugin
v
Because projects / project plugins cannot add plugin repos
e
Ah, you mean
Copy code
pluginManagement {
    repositories {
        maven {
         url ....
        }
    }
}
Is only for plugin dependencies
It is downloading 1200+ dependencies
v
Hm, that's not from the linked bug. That linked bug would result in
<http://services.gradle.org|services.gradle.org>
URLs.
Unless it redirects to the URL from your screenshot of course
Ah, that is coming from
DefaultGradleApiSourcesResolver
and you could overwrite that URL using
GRADLE_LIBS_REPO_OVERRIDE
environment variable
e
Let me try!
Oke, that looks like work. Thanks!
👌 1
But it is hardly scalable - I have to tell to modify shell config for all my team mates
v
That you probably need to complain to Gradle about 🙂
e
Haha, i will!
👌 1
Thank you so much for help!
👌 1