As part of the change, the SettingsScriptApi interface is no longer implemented by settings scripts and the InitScriptApi interface is no longer implemented by init scripts. They should be replaced with the corresponding model object interfaces, Settings and Gradle.
but we cannot figure out the new syntax. It doesn't appear that the Settings object has any way to access the gradle.properties variables, like it did before.
and it also seems like
Copy code
pluginManagement {
plugins {
no longer works either. Anyone know what to do here?
Now, they are executed earlier in a similar manner to buildscript {} or plugins {}. This means that code inside such a block cannot reference anything declared elsewhere in the script.
octylFractal
02/25/2020, 9:28 PM
likely the fix is to move it inside the
pluginManagement
block
s
snowe
02/25/2020, 9:31 PM
ah, that appears to be working. I read that differently than you did. So what exactly is happening here then? I don't really understand why it works in pluginManagement and not top level.
o
octylFractal
02/25/2020, 9:32 PM
the code inside the
{}
is extracted as a separate script entirely
octylFractal
02/25/2020, 9:32 PM
the same behavior occurs with buildscript/plugins, as stated