2016-11-17 17:08:57 +00:00
|
|
|
// This script exists just to allow bootstrapping the gradle plugins if maven central or jcenter are unavailable
|
|
|
|
// or if you are developing these plugins. See the readme for more information.
|
|
|
|
|
|
|
|
buildscript {
|
2016-12-06 16:29:15 +00:00
|
|
|
// For sharing constants between builds
|
2017-03-24 11:22:53 +00:00
|
|
|
Properties constants = new Properties()
|
2017-03-30 15:27:01 +00:00
|
|
|
file("$projectDir/../constants.properties").withInputStream { constants.load(it) }
|
2016-12-06 16:29:15 +00:00
|
|
|
|
2016-12-08 12:18:26 +00:00
|
|
|
// If you bump this version you must re-bootstrap the codebase. See the README for more information.
|
2017-12-07 17:22:22 +00:00
|
|
|
ext {
|
|
|
|
gradle_plugins_version = constants.getProperty("gradlePluginsVersion")
|
|
|
|
bouncycastle_version = constants.getProperty("bouncycastleVersion")
|
|
|
|
typesafe_config_version = constants.getProperty("typesafeConfigVersion")
|
|
|
|
jsr305_version = constants.getProperty("jsr305Version")
|
|
|
|
kotlin_version = constants.getProperty("kotlinVersion")
|
|
|
|
artifactory_plugin_version = constants.getProperty('artifactoryPluginVersion')
|
2018-02-13 10:23:17 +00:00
|
|
|
snake_yaml_version = constants.getProperty('snakeYamlVersion')
|
2017-12-07 17:22:22 +00:00
|
|
|
}
|
2016-11-17 17:08:57 +00:00
|
|
|
|
|
|
|
repositories {
|
2016-12-01 20:24:04 +00:00
|
|
|
mavenLocal()
|
2016-11-17 17:08:57 +00:00
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2016-12-08 12:18:26 +00:00
|
|
|
classpath "net.corda.plugins:publish-utils:$gradle_plugins_version"
|
2017-01-03 14:15:23 +00:00
|
|
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
|
2017-10-09 19:08:08 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2017-12-07 17:22:22 +00:00
|
|
|
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:$artifactory_plugin_version"
|
2016-11-17 17:08:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-01 20:24:04 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
2017-12-07 17:22:22 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2016-11-17 17:08:57 +00:00
|
|
|
|
|
|
|
allprojects {
|
2017-09-29 15:55:26 +00:00
|
|
|
version gradle_plugins_version
|
2016-12-05 17:37:37 +00:00
|
|
|
group 'net.corda.plugins'
|
2016-11-21 13:46:30 +00:00
|
|
|
}
|
|
|
|
|
2016-12-01 20:24:04 +00:00
|
|
|
bintrayConfig {
|
|
|
|
user = System.getenv('CORDA_BINTRAY_USER')
|
|
|
|
key = System.getenv('CORDA_BINTRAY_KEY')
|
|
|
|
repo = 'corda'
|
|
|
|
org = 'r3'
|
|
|
|
licenses = ['Apache-2.0']
|
2016-12-06 10:05:02 +00:00
|
|
|
vcsUrl = 'https://github.com/corda/corda'
|
|
|
|
projectUrl = 'https://github.com/corda/corda'
|
2016-12-01 20:24:04 +00:00
|
|
|
gpgSign = true
|
|
|
|
gpgPassphrase = System.getenv('CORDA_BINTRAY_GPG_PASSPHRASE')
|
2017-10-09 19:08:08 +00:00
|
|
|
publications = ['cordformation', 'quasar-utils', 'cordform-common', 'api-scanner', 'cordapp']
|
2016-12-06 10:05:02 +00:00
|
|
|
license {
|
|
|
|
name = 'Apache-2.0'
|
|
|
|
url = 'https://www.apache.org/licenses/LICENSE-2.0'
|
|
|
|
distribution = 'repo'
|
|
|
|
}
|
|
|
|
developer {
|
|
|
|
id = 'R3'
|
|
|
|
name = 'R3'
|
|
|
|
email = 'dev@corda.net'
|
|
|
|
}
|
2017-01-03 14:15:23 +00:00
|
|
|
}
|
2017-12-07 17:22:22 +00:00
|
|
|
|
|
|
|
artifactory {
|
|
|
|
publish {
|
|
|
|
contextUrl = 'https://ci-artifactory.corda.r3cev.com/artifactory'
|
|
|
|
repository {
|
|
|
|
repoKey = 'corda-dev'
|
|
|
|
username = 'teamcity'
|
|
|
|
password = System.getenv('CORDA_ARTIFACTORY_PASSWORD')
|
|
|
|
}
|
|
|
|
|
|
|
|
defaults {
|
|
|
|
// Publish utils does not have a publish block because it would be circular for it to apply it's own
|
|
|
|
// extensions to itself
|
|
|
|
if(project.name == 'publish-utils') {
|
|
|
|
publications('publishUtils')
|
|
|
|
// Root project applies the plugin (for this block) but does not need to be published
|
|
|
|
} else if(project != rootProject) {
|
|
|
|
publications(project.extensions.publish.name())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|