Gradle WAR manifest

Hello,

We have an existing META-INF/manifest.mf file that is created from a third party, We move this into the WebContent for the WAR task. The problem is the manifest is overwritten by the default manifest create. How can I disable this default behavior?

You can merge the generated manifest with an existing one.

war {
    manifest {
        from 'src/main/resources/META-INF/manifest.mf'
    }
}

Thanks for that! perfect