buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4' } } apply plugin: 'java' apply plugin: 'com.github.johnrengelman.shadow' group = 'exhibitor' archivesBaseName = 'exhibitor' version = '1.6.0' repositories { jcenter() mavenCentral() maven { url "https://repository.jboss.org/nexus/content/groups/public/" } } dependencies { compile 'io.soabase.exhibitor:exhibitor-standalone:1.6.0' } jar { manifest { attributes ( 'Main-Class': 'com.netflix.exhibitor.application.ExhibitorMain', 'Implementation-Version': project.version ) } } shadowJar { mergeServiceFiles() } assemble.dependsOn shadowJar