Generate OSGi metadata with the bnd plugin
@@ -4,6 +4,7 @@ plugins {
id 'com.github.sherter.google-java-format' version '0.7.1'
id 'net.ltgt.apt' version '0.13'
id 'net.ltgt.errorprone' version '0.0.13'
+ id 'biz.aQute.bnd.builder' version '4.0.0'
}
group 'com.google.cloud.tools'
@@ -51,6 +52,14 @@ dependencies {
jar {
manifest {
attributes 'Implementation-Version': version
+
+ // OSGi metadata
+ attributes 'Bundle-SymbolicName': 'com.google.cloud.tools.jib'
+ attributes 'Bundle-Name': 'Jib library for building Docker and OCI images'
+ attributes 'Bundle-Vendor': 'Google LLC'
+ attributes 'Bundle-DocURL': 'https://github.com/GoogleContainerTools/jib'
+ attributes 'Bundle-License': 'https://www.apache.org/licenses/LICENSE-2.0'
+ attributes 'Export-Package': 'com.google.cloud.tools.jib.*'
}
}
