pdeva
pdeva

Reputation: 45451

gradle war task generates META-INF folder in root of war file

My gradle war task seems to generate a META-INF in the root of my war file. Is this a bug in gradle?
AFAIK meta-inf doesnt belong in the root of war files.

Here is my build.gradle:

apply plugin:'war'
sourceCompatibility = 1.7

Here is my project layout:

enter image description here

Here is the contents of the war. Notice the META-INF folder

enter image description here

Am I doing something wrong?

Upvotes: 0

Views: 963

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123900

Like Jar archives, War archives are expected to have a META-INF/MANIFEST.MF file.

PS: Please do not double-post. I already answered your question at http://forums.gradle.org.

Upvotes: 1

Related Questions