Quasar utils now publishes to bintray.

This commit is contained in:
Clinton Alexander 2016-11-18 12:54:17 +00:00
parent 14ca7847d0
commit e3f618fe13

View File

@ -1,5 +1,7 @@
apply plugin: 'groovy'
apply plugin: 'net.corda.plugins.publish-utils'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
dependencies {
compile gradleApi()
@ -10,6 +12,21 @@ repositories {
mavenCentral()
}
bintray {
user = System.getenv('CORDA_BINTRAY_USER')
key = System.getenv('CORDA_BINTRAY_KEY')
publications = ['quasarUtils']
dryRun = false
pkg {
repo = 'corda'
name = 'quasar-utils'
userOrg = 'r3'
licenses = ['Apache-2.0']
}
}
task(install, dependsOn: 'publishToMavenLocal')
publishing {
publications {
quasarUtils(MavenPublication) {
@ -19,6 +36,26 @@ publishing {
artifact sourceJar
artifact javadocJar
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'quasar-utils'
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'
}
}
}
}
}
}
}