2021-10-17 15:57:48 +02:00
|
|
|
// Note that this is also declared in the main build.gradle for
|
|
|
|
// subprojects, but since evaluationDependsOnChildren is enabled we
|
|
|
|
// need to declare it here too to have bundle{bnd{...}} available
|
|
|
|
apply plugin: 'biz.aQute.bnd.builder'
|
|
|
|
|
2019-05-06 22:06:13 +02:00
|
|
|
description = """\
|
|
|
|
Smack XML parser using Stax."""
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':smack-xmlparser')
|
2020-04-11 21:59:21 +02:00
|
|
|
//testCompile project(path: ":smack-xmlparser", configuration: "testRuntime")
|
2019-05-06 22:06:13 +02:00
|
|
|
}
|
2021-10-17 15:57:48 +02:00
|
|
|
|
|
|
|
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",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|