Slackbot
09/21/2023, 7:16 AMThomas Broyer
09/21/2023, 7:31 AMdakriy
09/21/2023, 7:37 AMdakriy
09/21/2023, 7:44 AMdependencyResolutionManagement
block.
https://docs.gradle.org/current/userguide/dependency_management.html
"Repositories used by convention by every subproject can be declared in the settings.gradle(.kts)
file:"
"The dependencyResolutionManagement
repositories block accepts the same notations as in a project, which includes Maven or Ivy repositories, with or without credentials, etc.
By default, repositories declared by a project will override whatever is declared in settings. You can change this behavior to make sure that you always use the settings repositories:"
You can then extend this and apply the dependencyResolutionManagement
block to every build by applying the same settings plugin to each build.dakriy
09/21/2023, 7:48 AMVampire
09/21/2023, 8:33 AMdependencyResolutionManagement
is not used is expected, because that is for normal dependencies. For plugins, pluginManagement
is the relevant part.dakriy
09/21/2023, 9:09 AMdakriy
09/21/2023, 3:33 PMpluginManagement
block in my settings plugin and everything seems to work. Doesn't make sense why only that repository is needed and not everything else, but I suppose it's working for the time being.