Skip to content

Commit

Permalink
Add Implementation-Version and other MANIFEST.MF attributes (fixes #889)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Mar 23, 2023
1 parent 0670fce commit b95f15b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion gradle/codeQuality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit b95f15b

Please sign in to comment.