Added OSGI manifest to -sources.jar (Fixes #242)

This commit is contained in:
Jeroen van Erp
2016-04-11 10:56:18 +02:00
parent c3f75cda19
commit 4c9ebc306d

View File

@@ -91,6 +91,7 @@ task javadocJar(type: Jar) {
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
manifest = project.tasks.jar.manifest
}
artifacts {
@@ -110,7 +111,7 @@ if (JavaVersion.current().isJava8Compatible()) {
}
uploadArchives {
if(project.hasProperty('sonatypeUsername')) {
if (project.hasProperty('sonatypeUsername')) {
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }