mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
* Improved OSGI sources manifest * Added correct manifest entries for OSGI source bundle (Fixes #242) * Removed empty sourceset
This commit is contained in:
11
build.gradle
11
build.gradle
@@ -103,7 +103,16 @@ task javadocJar(type: Jar) {
|
|||||||
task sourcesJar(type: Jar) {
|
task sourcesJar(type: Jar) {
|
||||||
classifier = 'sources'
|
classifier = 'sources'
|
||||||
from sourceSets.main.allSource
|
from sourceSets.main.allSource
|
||||||
manifest = project.tasks.jar.manifest
|
manifest {
|
||||||
|
attributes(
|
||||||
|
// Add the needed OSGI attributes
|
||||||
|
"Bundle-ManifestVersion": "2",
|
||||||
|
"Bundle-Name": "${project.jar.manifest.name} Source",
|
||||||
|
"Bundle-Version": project.jar.manifest.version,
|
||||||
|
"Eclipse-SourceBundle": "${project.jar.manifest.symbolicName};version=\"${project.jar.manifest.version}\";roots:=\".\"",
|
||||||
|
"Bundle-SymbolicName": "${project.jar.manifest.symbolicName}.source"
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
|
|||||||
Reference in New Issue
Block a user