Can't deploy war dependent module using java-library plugin

In eclipse, I have a war project dependents on another project in a multi module project environment.
I recently started to use java-library plugin instead of java changing all dependencies from compile to api/implementation.
The result is that when I deploy the war in my tomcat, all dependencies aren’t packed within it.
I also noticed that the entry “Web App Libraries” under my web project disappear when i change from “java” to “java-library” plugin.
The project also has “eclipse-wtp” plugin applied.

When I change back from

dependencies {
	api project(':myOtherProject')


dependencies {
compile project(‘:myOtherProject’)

it works again.