André Thiele
03/04/2025, 4:37 PMVampire
03/04/2025, 5:25 PMpluginManagement
is special like some other blocks. It is extracted and evaluated separately to find out where to resolve plugins (including settings plugins from). Without that knowledge the settings script cannot be compiled as Gradle cannot know where to take the settings plugins from. But because of that you can of course not access anything outside that block from within.Vampire
03/04/2025, 5:25 PMdependencyResolutionManagement
block from inside the pluginManagement
block.
While not being super clean, you could then use the same extension function for both.André Thiele
03/04/2025, 5:46 PMVampire
03/04/2025, 6:00 PMVampire
03/04/2025, 6:01 PMVampire
03/04/2025, 6:01 PMAlexey Illarionov
03/04/2025, 6:06 PMVampire
03/04/2025, 6:10 PMAlexey Illarionov
03/04/2025, 6:28 PM