Slackbot
03/27/2022, 9:13 AMTomasz Majbaum
03/27/2022, 9:53 AMDoron Gold
03/27/2022, 9:53 AMVampire
03/27/2022, 11:00 AMCarsten Otto
03/27/2022, 11:01 AMTomasz Majbaum
03/27/2022, 11:01 AMThomas Broyer
03/27/2022, 11:11 AMmavenCentral() before gradlePluginPortal() so you're not impacted by JCenter (or Gradle's JCenter mirror) flaky availability. The only downside is that you'll also reach to Central for the artifacts actually hosted on the Gradle Plugin Portal, that's a small price to pay for a more stable build environment.
(also, JCenter still rewrites some POM files from time to time, breaking Gradle verification metadata)
https://github.com/gradle/gradle/issues/15406
repositories {
mavenCentral()
gradlePluginPortal()
}Doron Gold
03/27/2022, 12:21 PMrepositories {
mavenCentral()
gradlePluginPortal()
}
Does it go inside the buildscript block? or inside pluginManagement block?Vampire
03/27/2022, 2:32 PMpluginManagement, you should practically never use buildscriptThomas Broyer
03/27/2022, 3:09 PMbuildSrc or an included build for convention plugins, also put it in that project's settings in both pluginManagement and dependencyResolutionManagement .Peter vR
03/27/2022, 3:16 PMThomas Broyer
03/27/2022, 3:56 PMStephen Ashley
03/28/2022, 1:11 PMThomas Broyer
03/28/2022, 2:28 PM