Cordformation now publishes to bintray.

This commit is contained in:
Clinton Alexander
2016-11-18 13:12:27 +00:00
parent e3f618fe13
commit a90de1fa49
4 changed files with 37 additions and 3 deletions

View File

@ -12,6 +12,7 @@ buildscript {
dependencies { dependencies {
classpath "net.corda.plugins:publish-utils:$corda_published_version" classpath "net.corda.plugins:publish-utils:$corda_published_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
} }
} }
@ -19,7 +20,7 @@ apply plugin: 'maven-publish'
allprojects { allprojects {
group 'net.corda' group 'net.corda'
version "$corda_version" version "$corda_published_version"
} }
// Aliasing the publishToMavenLocal for simplicity. // Aliasing the publishToMavenLocal for simplicity.

View File

@ -1,5 +1,7 @@
apply plugin: 'groovy' apply plugin: 'groovy'
apply plugin: 'net.corda.plugins.publish-utils' apply plugin: 'net.corda.plugins.publish-utils'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
dependencies { dependencies {
compile gradleApi() compile gradleApi()
@ -12,6 +14,19 @@ repositories {
mavenCentral() mavenCentral()
} }
bintray {
user = System.getenv('CORDA_BINTRAY_USER')
key = System.getenv('CORDA_BINTRAY_KEY')
publications = ['cordformation']
dryRun = false
pkg {
repo = 'corda'
name = 'cordformation'
userOrg = 'r3'
licenses = ['Apache-2.0']
}
}
publishing { publishing {
publications { publications {
cordformation(MavenPublication) { cordformation(MavenPublication) {
@ -21,6 +36,26 @@ publishing {
artifact sourceJar artifact sourceJar
artifact javadocJar artifact javadocJar
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'cordformation'
description 'A small gradle plugin for adding some basic Quasar tasks and configurations to reduce build.gradle bloat.'
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'
}
}
}
}
} }
} }
} }

View File

@ -1 +0,0 @@
version 0.6

View File

@ -1,5 +1,4 @@
apply plugin: 'groovy' apply plugin: 'groovy'
apply plugin: 'net.corda.plugins.publish-utils' // TODO: Remove when bintray publishing code is in master
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray' apply plugin: 'com.jfrog.bintray'