This message was deleted.
# community-support
s
This message was deleted.
m
It should work if you use a plugin from your included build you should have its dependencies available on your main project buildscript classpath
either declare a "placeholder" plugin in your included build that you apply in your main build
or do something "old style" like:
Copy code
buildscript {
  dependencies {
    // pull the included build here
    classpath("com.example:build-logic")
  }
}
m
I’ve found out there are cases I needed plugin X in the main build but not in the build logic, but I was still depending on plugin X from within
buildSrc
because I found out it was a simple way to make it available to the main build as well.
m
Yea, I like to do that as well, ensures all the dependencies are resolved at the same time
m
does this mean I can’t really ditch buildSrc completely?
m
I think you can?
Using one of the 2 solutions above you can pull your included build dependencies into your main build
🙏 1
m
I’ve resorted to using buildscript dependencies as you suggested. I’ve also noticed from here it should be possible to declare plugin versions in the
pluginManagement.plugins
block. It works indeed but I can’t access the version catalog from within this block, is this a known limitation or am I doing something wrong?