/*
 *
 */

import aQute.bnd.gradle.Resolve

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 create(type: Resolve) {
   description "Resolve ${name}.bndrun"
   group 'export'
   bndrun "${name}.bndrun"
   bundles = configurations.bundles
}

task same(type: Resolve) {
   description "Resolve ${name}.bndrun"
   group 'export'
   bndrun file("${name}.bndrun")
   failOnChanges = true
   bundles = configurations.bundles
}

task changefail(type: Resolve) {
   description "Resolve ${name}.bndrun"
   group 'export'
   bndrun { file("${name}.bndrun") }
   failOnChanges = true
   bundles = configurations.bundles
}

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