Cannot include build. This is not supported yet.
Hi guys,
we are using a multi-project-repository and rely on includeBuild to add dependencies between the projects. One of our projects is using spring-boot and springdoc with the gradle plugin to generate the yaml-files from code.
Recently, we have added a dependency to the spring-boot project using includeBuild(...) in the settings.gradle. Ever since we cannot execute the gradle task to generate the yaml. The execution fails with the following error-message: Cannot include build 'my-dependency' in build ':my_app'. This is not supported yet.
Are there any plans to add this feature in the foreseeable future? Are there any workarounds? What we tried so far is to create a task to automatically run a publishToMavenLocal in the other project. While this seems to work just fine for dependencies, it does not work for plugins, since they need to be available for the task to execute.
Thanks for the report. I could not reproduce it, with plugin 1.9.0 or the current master, on Gradle 8.2.1:
- an application that depends on another build through
includeBuild(...)in itssettings.gradle; - the same application itself included in a parent build (
:my_appin the message suggests a nested composite build), running./gradlew :app:generateOpenApiDocsfrom the parent.
The message Cannot include build ... This is not supported yet comes from Gradle itself, and the plugin does not create or include builds. Could you share a minimal project that reproduces it, with your Gradle version and the command you run?