Skip to content

Commit

Permalink
Improved OSGI sources manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
hierynomus committed Apr 13, 2016
1 parent fddc943 commit 317bbfa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 317bbfa

Please sign in to comment.