From b95f15b7bbdc9eb59d17940dc189ca42a7cca635 Mon Sep 17 00:00:00 2001 From: Ben Manes Date: Wed, 22 Mar 2023 18:12:20 -0700 Subject: [PATCH] Add Implementation-Version and other MANIFEST.MF attributes (fixes #889) --- build.gradle | 1 + gradle/codeQuality.gradle | 8 +++++++- gradle/publish.gradle | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index fb4b79c4df..2abbf58449 100644 --- a/build.gradle +++ b/build.gradle @@ -32,6 +32,7 @@ allprojects { apply plugin: 'com.github.ethankhall.semantic-versioning' apply from: "${rootDir}/gradle/eclipse.gradle" + description = 'A high performance caching library' group = 'com.github.ben-manes.caffeine' version.with { major = 3 // incompatible API changes diff --git a/gradle/codeQuality.gradle b/gradle/codeQuality.gradle index 14293a3cbc..ee123f504d 100644 --- a/gradle/codeQuality.gradle +++ b/gradle/codeQuality.gradle @@ -58,7 +58,13 @@ tasks.named('javadoc').configure { tasks.named('jar').configure { bundle { - bnd('Bundle-License': 'https://www.apache.org/licenses/LICENSE-2.0', '-reproducible': 'true') + bnd( + 'Bundle-License': 'https://www.apache.org/licenses/LICENSE-2.0', + 'Build-Jdk-Spec': java.toolchain.languageVersion.get(), + 'Implementation-Title': project.description, + 'Bundle-Description': project.description, + 'Implementation-Version': version, + '-reproducible': 'true') properties.empty() } metaInf { diff --git a/gradle/publish.gradle b/gradle/publish.gradle index b1eae27495..2904b89ca0 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -33,7 +33,7 @@ publishing { pom { name = 'Caffeine cache' - description = 'A high performance caching library' + description = project.description url = 'https://github.com/ben-manes/caffeine' inceptionYear = '2014'