Can settings-plugins be applied from an `init.grad...
# community-support
s
Can settings-plugins be applied from an
init.grade
script?
v
I think so
s
Indeed, https://docs.gradle.org/current/userguide/init_scripts.html#sec:init_script_plugins seems to indicate that a top-level
apply
should do the trick...
v
No, that is an init plugin, not a settings plugin
s
Oh, wow, I didn't know there is such a thing as an "init plugin" 😄
This seems to work:
Copy code
settingsEvaluated { settings ->
    settings.pluginManagement {
        plugins {
            id "org.gradle.toolchains.foojay-resolver-convention" version "0.8.0"
        }
    }
}
v
plugins
in
pluginManagement
is not applying a plugin though
settings.apply...
should be it I think
s
Right, missed that:
Copy code
settings.apply plugin: "org.gradle.toolchains.foojay-resolver-convention"
👌 1