/*
 *
 */

import aQute.bnd.gradle.Export

plugins {
    id 'biz.aQute.bnd.builder'
}

repositories {
    mavenCentral()
}

configurations {
  bundles
}

dependencies {
    bundles 'org.apache.felix:org.apache.felix.framework:5.4.0'
    bundles 'org.apache.felix:org.apache.felix.eventadmin:1.4.6'
}

ext {
	osgiIdentity = 'org.apache.felix.eventadmin'
}

task export(type: Export) {
   description "Export ${name}.bndrun"
   group 'export'
   bndrun "${name}.bndrun"
   bundles = configurations.bundles
}

task exporter(type: Export) {
   description "Exporter for ${name}.bndrun"
   group 'export'
   bndrun "${name}.bndrun"
   bundles = configurations.bundles
   exporter = 'bnd.runbundles'
}

task runbundles(type: Export) {
   description "Export ${name}.bndrun"
   group 'export'
   bndrun "${name}.bndrun"
   bundlesOnly = true
   bundles = configurations.bundles
}
