It should be possible to simply replace ``` apply plugin 'war' ``` with ``` apply plugin 'executable-war' ``` to make an existing war into an executable war.