Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Add specification version to jars, and impl-title/version & spec vers…
Browse files Browse the repository at this point in the history
…ion to javadoc and sources jars

Signed-off-by: Gary Brown <gary@brownuk.com>
  • Loading branch information
objectiser committed Aug 23, 2018
1 parent 3c2ddfc commit b9b52c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ subprojects {
jar {
from sourceSets.main.output
manifest {
attributes('Implementation-Title': project.name, 'Implementation-Version': project.version)
attributes('Implementation-Title': project.name, 'Implementation-Version': project.version, 'Specification-Version': project.version)
}
}

Expand Down
6 changes: 6 additions & 0 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,18 @@ uploadArchives {
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
manifest {
attributes('Implementation-Title': project.name, 'Implementation-Version': project.version, 'Specification-Version': project.version)
}
}

// add sources to our jar
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
manifest {
attributes('Implementation-Title': project.name, 'Implementation-Version': project.version, 'Specification-Version': project.version)
}
}

// add the jars as artifacts
Expand Down

0 comments on commit b9b52c1

Please sign in to comment.