Slackbot
11/13/2023, 9:14 PMRyan Schmitt
11/13/2023, 9:20 PMChris
11/13/2023, 9:22 PMVampire
11/14/2023, 12:55 AMconfigurations.all { ... } and similar, because they are detached.Vampire
11/14/2023, 12:57 AMbuildscript.configurations instead of project.configurations it might use the plugin repositories, but I didn't try. But should be testable quickly be resolving something that is not found and seeing in the error which repos were searched.Vampire
11/14/2023, 12:59 AMbuildscript.configurations.detachedConfiguration(dependencies.create("a:b:1")).resolve()
=>
Could not resolve all files for configuration ':detachedConfiguration1'.
> Could not find a:b:1.
Searched in the following locations:
- <https://plugins.gradle.org/m2/a/b/1/b-1.pom>
- <https://dl.google.com/dl/android/maven2/a/b/1/b-1.pom>
Required by:
project :Vampire
11/14/2023, 1:00 AMpluginManagement { repositories { ... } } actually is buildscriptManagement { repositories { ... } } :-DRyan Schmitt
11/14/2023, 3:05 AMWhat is so mysterious about detached configurations?What problem they're trying to solve. As far as I can tell, the interesting thing about detached configurations isn't that they're detached, it's that they're dynamic. They allow plugins to resolve dependencies dynamically at execution time, as an implementation detail of whatever it is they do
Ryan Schmitt
11/14/2023, 3:06 AMconfigurations.all) sound like visibility mechanisms to me. Java doesn't have detached methods, it has private methodsVampire
11/14/2023, 3:06 AMVampire
11/14/2023, 3:06 AMVampire
11/14/2023, 3:06 AMVampire
11/14/2023, 3:07 AMVampire
11/14/2023, 3:07 AMVampire
11/14/2023, 3:08 AMJava doesn't have detached methods, it has private methodsWhat point should that be? We are talking about a Gradle concept, not a Java concept, so I don't see any value in this comparison
Vampire
11/14/2023, 3:08 AMChris
11/14/2023, 2:24 PMChris
11/14/2023, 2:29 PMVampire
11/14/2023, 2:33 PMChris
11/14/2023, 2:40 PMmavenCentral() to the repository set when used against a “blank project” (in this case the root project).