mirror of
https://github.com/corda/corda.git
synced 2024-12-30 09:48:59 +00:00
49 lines
1.0 KiB
Groovy
49 lines
1.0 KiB
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: 'com.jfrog.bintray'
|
|
|
|
dependencies {
|
|
compile gradleApi()
|
|
compile localGroovy()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
task("sourceJar", type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
task("javadocJar", type: Jar, dependsOn: javadoc) {
|
|
classifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
bintray {
|
|
user = System.getenv('CORDA_BINTRAY_USER')
|
|
key = System.getenv('CORDA_BINTRAY_KEY')
|
|
publications = ['publishUtils']
|
|
pkg {
|
|
repo = 'corda'
|
|
name = 'publish-utils'
|
|
userOrg = 'r3'
|
|
licenses = ['Apache-2.0']
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
publishUtils(MavenPublication) {
|
|
from components.java
|
|
groupId 'net.corda.plugins'
|
|
artifactId 'publish-utils'
|
|
|
|
artifact sourceJar
|
|
artifact javadocJar
|
|
}
|
|
}
|
|
}
|