Skip to content

Commit a9fc833

Browse files
garyrussellartembilan
authored andcommitted
Add Manifest Properties including Jigsaw Module
Resolves #428
1 parent ad077eb commit a9fc833

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,20 @@ subprojects { subproject ->
129129
from javadoc
130130
}
131131

132+
jar {
133+
manifest {
134+
attributes(
135+
'Implementation-Version': version,
136+
'Created-By': "JDK ${System.properties['java.version']} (${System.properties['java.specification.vendor']})",
137+
'Implementation-Title': subproject.name,
138+
'Implementation-Vendor-Id': subproject.group,
139+
'Implementation-Vendor': 'Pivotal Software, Inc.',
140+
'Implementation-URL': linkHomepage,
141+
'Automatic-Module-Name': subproject.name.replace('-', '.') // for Jigsaw
142+
)
143+
}
144+
}
145+
132146
artifacts {
133147
archives sourcesJar
134148
archives javadocJar

0 commit comments

Comments
 (0)