Slackbot
12/01/2023, 2:21 PMVampire
12/01/2023, 2:26 PMversionCatalogs extension which is the new thing mentioned there.
You can still not use type-safe accessors without my hack-around, but only that string-y API you could also use before.Caleb Cushing
12/01/2023, 2:27 PMval libs = the<LibrariesForLibs>()Caleb Cushing
12/01/2023, 2:28 PMVampire
12/01/2023, 2:28 PMVampire
12/01/2023, 2:28 PMCaleb Cushing
12/01/2023, 2:30 PMCaleb Cushing
12/01/2023, 2:32 PMVampire
12/01/2023, 2:36 PMversionCatalogs extension of type VersionCatalogsExtension not being usable in precompiled script plugins, or at least not in ones used by others I'm not fully sure about the one or the other.
Whether you want to use my hack-around and the typesafe accessors, or that officially supported string-y API is up to you. The precondition for using either solution is exactly the same, which is that the build you apply the plugin to has the expected entries in it version catalog.Caleb Cushing
12/01/2023, 2:40 PMimplementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))Vampire
12/01/2023, 2:40 PMVampire
12/01/2023, 2:41 PMCaleb Cushing
12/01/2023, 2:42 PMCaleb Cushing
12/01/2023, 2:43 PMCaleb Cushing
12/01/2023, 2:43 PMCaleb Cushing
12/01/2023, 2:45 PMVampire
12/01/2023, 2:49 PMCaleb Cushing
12/01/2023, 3:49 PMplugin {} ?Vampire
12/01/2023, 4:52 PMplugin { ... } blocks of precompiled script plugins even with my hack-around.
This is not technically possible as the plugin { ... } block is extracted and applied to a dummy project to find out which static accessors for exensions and so on need to be generated.
And on this dummy project my hack-around does not apply and cannot be made so.