Skip to content

Commit a7ae482

Browse files
committed
Updated
1 parent 0f5db7f commit a7ae482

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

gradle-manifest-war.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title: Gradle: Add an attribute to MANIFEST.MF in a WAR file
2+
tags: gradle-war,gradle
3+
4+
You can use the manifest property in a Gradle War task to add an attribute to MANIFEST.MF.
5+
6+
The below does just that, creating a new war files [Your Project Name]-Something.war with the added manifest.mf attribute.
7+
8+
task createAWarFile(type: War) {
9+
classifier = 'Something'
10+
manifest { attributes "HI": "THERE" }
11+
}
12+
13+

0 commit comments

Comments
 (0)