group = 'asys' version = '0.9-SNAPSHOT' buildscript { repositories { mavenCentral() } dependencies { classpath "org.dm.gradle:gradle-bundle-plugin:0.10.0" } } apply plugin: 'org.dm.bundle' configurations { included compile.extendsFrom included } jar { dependsOn configurations.included from { configurations.included.collect { it.isDirectory() ? it : zipTree(it).matching{exclude{it.path.contains('META-INF')} } } } } bundle { instructions << [ 'Bundle-Name': 'ASys Web interface', 'Bundle-Activator': 'asys.webinterface.Activator', 'Import-Package': '*' ] exclude group: 'com.google.code.gson' } dependencies { compile project(':core') included group: 'com.google.code.gson', name: 'gson', version: '2.7' }