Projects Dependancies in Eclipse with configuration

I include project B in setting file of project A by using “includeBuild” in Eclipse

when I add project B for a project A as dependency and specify a configuration for it (

 as example 
implementation  (configuration: 'providedCompile' , group:'projectBGroup' , name:'projectBName)

the project B itself will not be added to the A project , just the mapped dependencies (providedCompile)

and when I do not specify the configuration

implementation  (group:'projectBGroup' , name:'projectBName)

the project B will be added but with his all dependencies which I dont want