Fredrik Jonsén
05/07/2024, 6:59 AMincludeBuild
. Inside the nested project, I have a number of subprojects, for example "web" and "security". I also have a "meta" subproject, which declares all the other subprojects as dependencies. My issue is that if any of the subprojects have an external dependency declared with api
, for example api("org.springframework.boot:spring-boot-starter-security")
, then the whole nested multiproject fails to build with
> Could not find org.springframework.boot:spring-boot-starter-security:.
Required by:
project :framework:meta > project :framework:security
When working with the "framework" project directory, i.e. without includeBuild
, it works fine. If I declare the dependencies as implementation
instead of api
, it works fine, but then of course I have to declare the dependencies in depending subprojects.
Any help would be appreciated, because at this point I'm really out of ideas, and feel like I will have to scrap the whole idea of having the "framework" be a multiproject.Vampire
05/07/2024, 9:36 AMFredrik Jonsén
05/07/2024, 10:40 AMVampire
05/07/2024, 11:31 AMplatform(...)
. This will most probably also solve your problems, as they are one of the many drawbacks you earn by using it.