To build WAR by Gradle system change java plugin to war plugin: apply plugin: 'war' After that execute gradle: