Can I somehow make Gradle substitute plugins in an...
# community-support
s
Can I somehow make Gradle substitute plugins in an included build using subprojects from the parent (including) build? Adding
includeBuild(".")
in the parent doesn't seem to work.
Adding
includeBuild(".")
to the
pluginManagement
block in the parent seems to do something. I now get this:
Copy code
Error resolving plugin [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.8.0']
> Expected vintage state of build ':mps-gradle-plugin' to be in state SettingsLoaded or later but is in state Created and transitioning to SettingsLoaded.
(where
foojay-resolver-convention
is a plugin I'm applying in settings, not part of my project, whereas
:mps-gradle-plugin
is the plugin in the subproject that I want to apply in an included build.)
m
IIRC, the regular
includeBuild()
works if you use the plugin from the
buildscript {}
classpath, just not the
plugin {}
block.