elect
07/12/2022, 8:30 PMplugins
block which gets evaluated and based on its content, specific code would be generated and made available to the rest of the script.
In Gradle you have to hit refresh in the Gradle window, in order to trigger this mechanism, but what about in a classic script instead?Javier
07/12/2022, 10:31 PMelect
07/12/2022, 10:54 PMJavier
07/12/2022, 11:11 PMelect
07/13/2022, 5:38 AMefemoney
07/19/2022, 2:34 PMilya.chernikov
07/20/2022, 7:02 AMrefineConfigurationBeforeParsing
property in the configuration) that would allow you to "intercept" the compilation in order to process your variant of the plugins
block and supply the results (most importantly - new dependencies) to the compilation of the original script. But there are no means yet that would help you to process the block, you'll need to parse the script on your own.
I do not recommend using compiler internals for that, like the lexer, while it may not be available for you in the future.