apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'us.kirchmeier.capsule' description 'HSM Certificate Generator' version project(':network-management').version configurations { runtimeArtifacts.extendsFrom runtime } task buildHsmCertGeneratorJAR(type: FatCapsule, dependsOn: 'jar') { applicationClass 'com.r3.corda.networkmanage.hsm.generator.MainKt' archiveName "hsm-cert-generator-${version}.jar" capsuleManifest { applicationVersion = corda_release_version systemProperties['visualvm.display.name'] = 'HSM Certificate Generator' minJavaVersion = '1.8.0' jvmArgs = ['-XX:+UseG1GC'] } applicationSource = files( project(':network-management').configurations.runtime, project(':network-management').jar ) } artifacts { runtimeArtifacts buildHsmCertGeneratorJAR publish buildHsmCertGeneratorJAR } jar { classifier "ignore" } publish { name 'hsm-cert-generator' disableDefaultJar = true }