What would be option to stop gradle downloading ko...
# gradle
e
What would be option to stop gradle downloading kotlin from internet and use my repository in case I have conventional plugin that needs kotlin serialization plugin (or any other kotlin plugin). I have settings.gradle for plugin and it has
Copy code
pluginManagement {
    repositories {
        maven { //my server url
v
Not sure what you mean. Gradle only uses the repositories you define.
e
Oke, found in the plugin
build.gradle
file
Copy code
repositories {
    mavenCentral()
}
Removing that worked
So it was configuration of the project but not configuration of the plugin project
Another question for me - find out if every plugin should have own settings file
v
Every build should have its own settings script.
If you have a composite build with multiple builds, each of that build should have its own settings script
e
oke
v
If you have an included plugins build and apply that plugin then in another build of that composite build, you probably need to declare your repository twice.
Once in the plugin build as normal repository for dependencies, once at plugin respository in the build applying the plugins
Declared repositories are not "transitive" / "inherited" / "however you want to call it".
Each build has to declare the repositories where its dependencies should be resolved from and where its plugins and their dependencies should be resolved from
e
Thanks Bjorn!
👌 1
v
It's Björn or Bjoern, not Bjorn. 😉
today i learned 1