plugins { id 'org.igniterealtime.smack.java-common-conventions' } description = """\ Smack XML parser using Stax.""" dependencies { api project(':smack-xmlparser') //testCompile project(path: ":smack-xmlparser", configuration: "testRuntime") } jar { bundle { bnd( // see http://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.loader.html 'Require-Capability': 'osgi.extender;filter:="(osgi.extender=osgi.serviceloader.registrar)"', 'Provide-Capability': "osgi.serviceloader;osgi.serviceloader=org.jivesoftware.smack.xml.XmlPullParserFactory;register:=org.jivesoftware.smack.xml.stax.StaxXmlPullParserFactory", ) } }