Gradle Project dependencies issue

Hi all,
I have a Gradle multi-project build with this folder structure:

rootProject.name = ‘nm-parent’
include(’:nm-api-doc’)
include(’:nm-api’)
include(’:nm-war’)

nm-parent
±-- project :nm-api-doc
±-- project :nm-api
— project :nm-war

During the nm-war packaging I’m not able to consider into the business logic developed the nm-api project generated classes.
I added nm-api project into the nm-war dependencies as reported below

dependencies {
implementation project(’:nm-api’)
}

Am I wrong? Am I loosing something?