corda/node-api/build.gradle
bpaunescu 82df6b6896
ENT-1392: Zookeeper client library for prioritized master election (#462)
* initial zk leader election commit

* simplify latch states. now able to retry for leader
without creating a new latch

* finished zookeeper client wrapper, added unit tests, moved src files to
different module

* moved sources to node-api

* increase election wait time

* Remove sleep() causing tests to be flaky. Used countdownlatch to sync

* reworked election algorithm; path watcher is re-created right after it triggers

* moved kdocs from implementing class to interface

* remove whitespace

* added isStarted() method to ZkClient

* added a unit test that randomly executes actions on zk clients
2018-02-20 09:42:58 +00:00

61 lines
2.1 KiB
Groovy

apply plugin: 'kotlin'
apply plugin: 'net.corda.plugins.quasar-utils'
apply plugin: 'net.corda.plugins.publish-utils'
apply plugin: 'com.jfrog.artifactory'
description 'Corda node API'
dependencies {
compile project(":core")
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
// TODO: remove the forced update of commons-collections and beanutils when artemis updates them
compile "org.apache.commons:commons-collections4:${commons_collections_version}"
compile "commons-beanutils:commons-beanutils:${beanutils_version}"
compile "org.apache.activemq:artemis-core-client:${artemis_version}"
compile "org.apache.activemq:artemis-commons:${artemis_version}"
// For adding serialisation of file upload streams to RPC
// TODO: Remove this dependency and the code that requires it
compile "commons-fileupload:commons-fileupload:$fileupload_version"
compile "net.corda.plugins:cordform-common:$gradle_plugins_version"
// TypeSafe Config: for simple and human friendly config files.
compile "com.typesafe:config:$typesafe_config_version"
// Kryo: object graph serialization.
compile "com.esotericsoftware:kryo:4.0.0"
compile "de.javakaffee:kryo-serializers:0.41"
// For AMQP serialisation.
compile "org.apache.qpid:proton-j:0.21.0"
// SQL connection pooling library
compile "com.zaxxer:HikariCP:$hikari_version"
// For db migration
compile "org.liquibase:liquibase-core:$liquibase_version"
runtime 'com.mattbertolini:liquibase-slf4j:2.0.0'
// Apache Curator: a client library for Zookeeper
compile "org.apache.curator:curator-recipes:${curator_version}"
testCompile "org.apache.curator:curator-test:${curator_version}"
// Unit testing helpers.
testCompile "junit:junit:$junit_version"
testCompile "org.assertj:assertj-core:$assertj_version"
testCompile project(':node-driver')
}
jar {
baseName 'corda-node-api'
}
publish {
name jar.baseName
}