How to pbulish a BOM out of gradle subprojects?

I have a multi module gradle build which a collection of reusable component projects and a collection of apps that use the common components. . ├── build.gradle.kts ├── components │   ├── blob │   ├── …