diff --git a/build.gradle b/build.gradle index 9419b37017..188541b59c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,3 @@ - buildscript { // For sharing constants between builds Properties constants = new Properties() @@ -75,6 +74,7 @@ plugins { // but the DSL has some restrictions e.g can't be used on the allprojects section. So we should revisit this if there are improvements in Gradle. // Version 1.0.2 of this plugin uses capsule:1.0.1 id "us.kirchmeier.capsule" version "1.0.2" + id "com.jfrog.artifactory" version "4.4.18" } ext { @@ -85,6 +85,7 @@ apply plugin: 'project-report' apply plugin: 'com.github.ben-manes.versions' apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'net.corda.plugins.cordformation' +apply plugin: 'maven-publish' // We need the following three lines even though they're inside an allprojects {} block below because otherwise // IntelliJ gets confused when importing the project and ends up erasing and recreating the .idea directory, along @@ -273,3 +274,17 @@ task buildCordappDependenciesZip(type: Zip) { from 'node/capsule/NOTICE' // CDDL notice duplicatesStrategy = DuplicatesStrategy.EXCLUDE } + +artifactory { + publish { + contextUrl = 'https://ci-artifactory.corda.r3cev.com/artifactory' + repository { + repoKey = 'corda-releases' + username = 'teamcity' + password = System.getenv('CORDA_ARTIFACTORY_PASSWORD') + } + defaults { + publications('corda-jfx', 'corda-mock', 'corda-rpc', 'corda-core', 'corda', 'cordform-common', 'corda-finance', 'corda-node', 'corda-node-api', 'corda-node-schemas', 'corda-test-utils', 'corda-jackson', 'corda-verifier', 'corda-webserver-impl', 'corda-webserver') + } + } +} diff --git a/client/jackson/build.gradle b/client/jackson/build.gradle index 818b742f5d..234f7e1ae0 100644 --- a/client/jackson/build.gradle +++ b/client/jackson/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'java' apply plugin: 'kotlin' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' dependencies { compile project(':core') diff --git a/client/jfx/build.gradle b/client/jfx/build.gradle index 69f39972c6..5d12e01f56 100644 --- a/client/jfx/build.gradle +++ b/client/jfx/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'kotlin' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda client JavaFX modules' diff --git a/client/mock/build.gradle b/client/mock/build.gradle index 3b278fcbba..d709d4c911 100644 --- a/client/mock/build.gradle +++ b/client/mock/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'kotlin' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda client mock modules' diff --git a/client/rpc/build.gradle b/client/rpc/build.gradle index 2a7a682cda..b2ab10dff4 100644 --- a/client/rpc/build.gradle +++ b/client/rpc/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'kotlin' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda client RPC modules' diff --git a/cordform-common/build.gradle b/cordform-common/build.gradle index 340a4b6ec6..e15049fef1 100644 --- a/cordform-common/build.gradle +++ b/cordform-common/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'java' apply plugin: 'maven-publish' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' repositories { mavenCentral() diff --git a/finance/build.gradle b/finance/build.gradle index 6a554c33ec..3e4cae5813 100644 --- a/finance/build.gradle +++ b/finance/build.gradle @@ -5,6 +5,7 @@ apply plugin: 'kotlin-jpa' apply plugin: CanonicalizerPlugin apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'net.corda.plugins.quasar-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda finance modules' diff --git a/node-api/build.gradle b/node-api/build.gradle index 08ef79ae79..6bb83dcbf6 100644 --- a/node-api/build.gradle +++ b/node-api/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'kotlin' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda node Artemis API' diff --git a/node-schemas/build.gradle b/node-schemas/build.gradle index 5026633777..b08f45d361 100644 --- a/node-schemas/build.gradle +++ b/node-schemas/build.gradle @@ -2,6 +2,7 @@ apply plugin: 'kotlin' apply plugin: 'kotlin-kapt' apply plugin: 'idea' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda node database schemas' diff --git a/node/build.gradle b/node/build.gradle index 1ca6b79f34..74d9bf04e7 100644 --- a/node/build.gradle +++ b/node/build.gradle @@ -5,6 +5,7 @@ apply plugin: 'kotlin-jpa' apply plugin: 'java' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda node modules' diff --git a/node/capsule/build.gradle b/node/capsule/build.gradle index 9d60efab6c..fac1f538f5 100644 --- a/node/capsule/build.gradle +++ b/node/capsule/build.gradle @@ -4,6 +4,7 @@ */ apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'us.kirchmeier.capsule' +apply plugin: 'com.jfrog.artifactory' description 'Corda standalone node' diff --git a/test-utils/build.gradle b/test-utils/build.gradle index 6b0dc9b873..c0567edec9 100644 --- a/test-utils/build.gradle +++ b/test-utils/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'kotlin' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Testing utilities for Corda' diff --git a/verifier/build.gradle b/verifier/build.gradle index db63013972..e0035ffa33 100644 --- a/verifier/build.gradle +++ b/verifier/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'kotlin' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda verifier' diff --git a/webserver/build.gradle b/webserver/build.gradle index dc2e70e676..0868a6ec8a 100644 --- a/webserver/build.gradle +++ b/webserver/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'kotlin' apply plugin: 'java' apply plugin: 'net.corda.plugins.publish-utils' +apply plugin: 'com.jfrog.artifactory' description 'Corda node web server' diff --git a/webserver/webcapsule/build.gradle b/webserver/webcapsule/build.gradle index 08a8f0a9e1..9cfc1f8e0c 100644 --- a/webserver/webcapsule/build.gradle +++ b/webserver/webcapsule/build.gradle @@ -4,6 +4,7 @@ */ apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'us.kirchmeier.capsule' +apply plugin: 'com.jfrog.artifactory' description 'Corda node web server capsule'