WAR libraries missing when deployed in Eclipse

I got a simple project with the following build.gradle content:

apply plugin: 'java-library'
apply plugin: 'war'
apply plugin: 'eclipse-wtp'

repositories {

dependencies {
    implementation 'javax.cache:cache-api:1.+'
    implementation 'org.ehcache:ehcache:3.+'

    compileOnly 'javax:javaee-api:7.0'

When being compiled using gradle the implementation libraries will be in the WEB-INF/lib folder. Deploying the projects in Eclipse, those libraries are missing.

When using the java plugin the libraries where deployed… Is this a known issue?

Tools used:

Eclipse Oxygen
Buildship 2.1.2
Gradle 4.1

I suspect the java-library plugin conflicts with the war plugin in this case. Have you tried to apply ‘java’ plugin instead and replace implementation dependencies with compile dependencies?

(after all, a WAR project is not a java library…)