diff --git a/core/build.gradle b/core/build.gradle index 3364cca751..0381d88c47 100644 --- a/core/build.gradle +++ b/core/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: 'maven-publish' apply plugin: 'com.jfrog.bintray' buildscript { diff --git a/finance/build.gradle b/finance/build.gradle index 5ecc8f533c..a355793640 100644 --- a/finance/build.gradle +++ b/finance/build.gradle @@ -2,6 +2,8 @@ apply plugin: 'kotlin' apply plugin: CanonicalizerPlugin apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'net.corda.plugins.quasar-utils' +apply plugin: 'maven-publish' +apply plugin: 'com.jfrog.bintray' repositories { mavenLocal() @@ -30,6 +32,26 @@ sourceSets { } } +bintray { + user = System.getenv('CORDA_BINTRAY_USER') + key = System.getenv('CORDA_BINTRAY_KEY') + publications = ['finance'] + dryRun = false + pkg { + repo = 'corda' + name = 'finance' + userOrg = 'r3' + licenses = ['Apache-2.0'] + + version { + gpg { + sign = true + passphrase = System.getenv('CORDA_BINTRAY_GPG_PASSPHRASE') + } + } + } +} + publishing { publications { finance(MavenPublication) { @@ -38,6 +60,34 @@ publishing { artifact sourceJar artifact javadocJar + + pom.withXml { + asNode().children().last() + { + resolveStrategy = Closure.DELEGATE_FIRST + name 'finance' + description 'Corda finance modules' + url 'https://github.com/corda/corda' + scm { + url 'https://github.com/corda/corda' + } + + licenses { + license { + name 'Apache-2.0' + url 'https://www.apache.org/licenses/LICENSE-2.0' + distribution 'repo' + } + } + + developers { + developer { + id 'R3' + name 'R3' + email 'dev@corda.net' + } + } + } + } } } }