Add Automatic-Module-Name to MANIFEST.MF (#712)

This commit is contained in:
Jeroen van Erp
2021-08-27 16:29:51 +02:00
committed by GitHub
parent bb2c48e20c
commit f38fcbe57e

View File

@@ -18,6 +18,7 @@ plugins {
}
group = "com.hierynomus"
ext.moduleName = "${project.group}.${project.name}"
scmVersion {
tag {
@@ -100,7 +101,10 @@ task writeSshjVersionProperties {
jar.dependsOn writeSshjVersionProperties
jar {
inputs.property("moduleName", moduleName)
manifest {
attributes 'Automatic-Module-Name': moduleName
// please see http://bnd.bndtools.org/chapters/390-wrapping.html
instruction "Bundle-Description", "SSHv2 library for Java"
instruction "Bundle-License", "http://www.apache.org/licenses/LICENSE-2.0.txt"