diff --git a/client/build.gradle b/client/build.gradle index bf04cfe540..8934e9867a 100644 --- a/client/build.gradle +++ b/client/build.gradle @@ -1,6 +1,8 @@ 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' repositories { mavenLocal() @@ -38,18 +40,6 @@ sourceSets { } } -publishing { - publications { - client(MavenPublication) { - from components.java - artifactId 'client' - - artifact sourceJar - artifact javadocJar - } - } -} - // To find potential version conflicts, run "gradle htmlDependencyReport" and then look in // build/reports/project/dependencies/index.html for green highlighted parts of the tree. @@ -84,3 +74,63 @@ task integrationTest(type: Test) { testClassesDir = sourceSets.integrationTest.output.classesDir classpath = sourceSets.integrationTest.runtimeClasspath } + +bintray { + user = System.getenv('CORDA_BINTRAY_USER') + key = System.getenv('CORDA_BINTRAY_KEY') + publications = ['client'] + dryRun = false + pkg { + repo = 'corda' + name = 'client' + userOrg = 'r3' + licenses = ['Apache-2.0'] + + version { + gpg { + sign = true + passphrase = System.getenv('CORDA_BINTRAY_GPG_PASSPHRASE') + } + } + } +} + +publishing { + publications { + client(MavenPublication) { + from components.java + artifactId 'client' + + artifact sourceJar + artifact javadocJar + + pom.withXml { + asNode().children().last() + { + resolveStrategy = Closure.DELEGATE_FIRST + name 'client' + description 'Corda client 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' + } + } + } + } + } + } +} \ No newline at end of file diff --git a/node/build.gradle b/node/build.gradle index ed2cd6e5e6..2ac4ce7cff 100644 --- a/node/build.gradle +++ b/node/build.gradle @@ -3,6 +3,8 @@ apply plugin: 'java' apply plugin: 'net.corda.plugins.quasar-utils' apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'us.kirchmeier.capsule' +apply plugin: 'maven-publish' +apply plugin: 'com.jfrog.bintray' repositories { mavenLocal() @@ -196,6 +198,27 @@ artifacts { runtimeArtifacts buildCordaJAR } + +bintray { + user = System.getenv('CORDA_BINTRAY_USER') + key = System.getenv('CORDA_BINTRAY_KEY') + publications = ['node'] + dryRun = false + pkg { + repo = 'corda' + name = 'node' + userOrg = 'r3' + licenses = ['Apache-2.0'] + + version { + gpg { + sign = true + passphrase = System.getenv('CORDA_BINTRAY_GPG_PASSPHRASE') + } + } + } +} + publishing { publications { node(MavenPublication) { @@ -204,7 +227,36 @@ publishing { artifact sourceJar artifact javadocJar + + pom.withXml { + asNode().children().last() + { + resolveStrategy = Closure.DELEGATE_FIRST + name 'node' + description 'Corda node 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' + } + } + } + } } + corda(MavenPublication) { artifactId 'corda' @@ -212,6 +264,5 @@ publishing { classifier "" } } - } -} \ No newline at end of file +}