How to use gradle as compiler for .war files?

Here is my current gradle.build file. It manages to generate .war file, but I meet a reference error when one of my BPMN processes calls a DMN table. I don’t have this error when I deploy it with Maven as shown in the docs examples.

apply plugin: ‘java’
apply plugin: ‘war’

repositories {
mavenCentral()
}

dependencies {
testCompile ‘junit:junit:4.11’
}

I suspect this isn’t enough. Did I forget any dependencies to get a fully functionnal .war ? Like in this video (7:51), where we can see a spring-boot and an eclipse plugins in the build.gradle file. Did I miss something ?