From 317bbfa8a248fb385b21d2c483610ea5878e11b3 Mon Sep 17 00:00:00 2001 From: Jeroen van Erp Date: Wed, 13 Apr 2016 10:26:23 +0200 Subject: [PATCH] Improved OSGI sources manifest --- build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index b8f85d3d5..665805b79 100644 --- a/build.gradle +++ b/build.gradle @@ -103,7 +103,14 @@ task javadocJar(type: Jar) { task sourcesJar(type: Jar) { classifier = 'sources' from sourceSets.main.allSource - manifest = project.tasks.jar.manifest + manifest = osgiManifest { + classesDir = project.sourceSets.main.output.classesDir + classpath = project.sourceSets.main.runtimeClasspath + instruction "Bundle-ManifestVersion", "2" + instruction "Bundle-SymbolicName", "${project.group}.${project.name}.source" + instruction "Bundle-Version", project.version.toString() + instruction "Eclipse-SourceBundle", "${project.group}.${project.name};version=\"${project.version}\";roots:=\".\"" + } } artifacts {