From e62d1f12c15a4e0a0b2fda80b0ce7e5740dc4b37 Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Mon, 30 Apr 2018 14:41:55 +0100 Subject: [PATCH] DEVOPS-663 Publishing of performance test artefacts (#769) * Enable publishing of perftest cordapps * Enable publishing of jmeter-corda as capsule jar * Enable publishing of jmeter-corda as capsule jar * jar name * Correct module name to publish --- build.gradle | 2 +- perftestcordapp/build.gradle | 2 +- tools/jmeter/build.gradle | 20 +++++++++++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f4f268ebef..0c64e05b57 100644 --- a/build.gradle +++ b/build.gradle @@ -350,7 +350,7 @@ bintrayConfig { projectUrl = 'https://github.com/corda/corda' gpgSign = true gpgPassphrase = System.getenv('CORDA_BINTRAY_GPG_PASSPHRASE') - publications = ['corda-jfx', 'corda-mock', 'corda-rpc', 'corda-core', 'corda', 'corda-finance', 'corda-node', 'corda-node-api', 'corda-test-common', 'corda-test-utils', 'corda-jackson', 'corda-verifier', 'corda-webserver-impl', 'corda-webserver', 'corda-node-driver', 'corda-confidential-identities', 'doorman', 'doorman-hsm', 'corda-shell', 'corda-bridgeserver'] + publications = ['corda-jfx', 'corda-mock', 'corda-rpc', 'corda-core', 'corda', 'corda-finance', 'corda-node', 'corda-node-api', 'corda-test-common', 'corda-test-utils', 'corda-jackson', 'corda-verifier', 'corda-webserver-impl', 'corda-webserver', 'corda-node-driver', 'corda-confidential-identities', 'doorman', 'doorman-hsm', 'corda-shell', 'corda-bridgeserver', 'corda-ptflows', 'jmeter-corda'] license { name = 'Apache-2.0' url = 'https://www.apache.org/licenses/LICENSE-2.0' diff --git a/perftestcordapp/build.gradle b/perftestcordapp/build.gradle index e4965e9e6f..7d75f36386 100644 --- a/perftestcordapp/build.gradle +++ b/perftestcordapp/build.gradle @@ -16,7 +16,7 @@ apply plugin: CanonicalizerPlugin apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.cordapp' -//apply plugin: 'com.jfrog.artifactory' +apply plugin: 'com.jfrog.artifactory' description 'Corda performance test modules' diff --git a/tools/jmeter/build.gradle b/tools/jmeter/build.gradle index 15e3cc2754..50dcb0a058 100644 --- a/tools/jmeter/build.gradle +++ b/tools/jmeter/build.gradle @@ -9,11 +9,18 @@ */ apply plugin: 'kotlin' +apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'us.kirchmeier.capsule' apply plugin: 'application' +apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' mainClassName = 'com.r3.corda.jmeter.Launcher' +configurations{ + runtimeArtifacts +} + dependencies { compile project(':client:rpc') compile project(':perftestcordapp') @@ -52,7 +59,6 @@ dependencies { //For Azure SQL and SQL Server support in persistence runtime group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '6.2.1.jre8' - testCompile project(':test-utils') testCompile project(':node-driver') } @@ -160,3 +166,15 @@ task buildJMeterJAR(type: FatCapsule, dependsOn: 'jar') { jvmArgs = ['-Xms512m', '-Xmx512m', '-XX:+UseG1GC'] } } + +artifacts { + runtimeArtifacts buildJMeterJAR + publish buildJMeterJAR { + classifier "" + } +} + +publish { + disableDefaultJar = true + name 'jmeter-corda' +} \ No newline at end of file