/*
 *
 */

import java.util.jar.*

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

repositories {
    mavenCentral()
}

group = 'biz.aQute.bnd'
archivesBaseName = 'biz.aQute.bndlib'
version = '3.1.0'

jar {
  baseName = 'biz.aQute.bnd'
  version = '3.0.0'
}

task echo {
  doFirst {
    File file = configurations.baseline.singleFile
    JarFile jar = new JarFile(file)
    Attributes manifest = jar.getManifest().getMainAttributes()
    println "Bundle-SymbolicName: ${manifest.getValue('Bundle-SymbolicName')}"
    println "Bundle-Version: ${manifest.getValue('Bundle-Version')}"
  }
}
