Add manifest attributes

This commit is contained in:
Vankka 2022-03-27 19:52:24 +03:00
parent 7e8150bad7
commit 81569c5ba8
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -96,6 +96,18 @@ allprojects {
// Always run shadowJar // Always run shadowJar
finalizedBy shadowJar finalizedBy shadowJar
manifest.attributes(
"Specification-Title": "DiscordSRV",
"Specification-Vendor": "DiscordSRV",
"Specification-Version": project.version
)
if (project.name != "api") {
manifest.attributes(
"Implementation-Title": "DiscordSRV",
"Implementation-Vendor": "DiscordSRV",
"Implementation-Version": project.version
)
}
if (indraGit.isPresent()) { if (indraGit.isPresent()) {
indraGit.applyVcsInformationToManifest(manifest) indraGit.applyVcsInformationToManifest(manifest)
} }