2016-02-16 14:10:51 +00:00
|
|
|
apply plugin: 'kotlin'
|
2017-06-22 09:35:49 +00:00
|
|
|
apply plugin: 'kotlin-jpa'
|
2016-11-18 14:41:06 +00:00
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
2016-11-16 18:09:23 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
2017-08-09 10:06:25 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2016-02-16 14:10:51 +00:00
|
|
|
|
2016-12-06 10:49:46 +00:00
|
|
|
description 'Corda core'
|
|
|
|
|
2016-02-18 12:43:15 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-16 14:10:51 +00:00
|
|
|
dependencies {
|
2017-02-16 11:02:36 +00:00
|
|
|
|
2017-01-03 14:15:23 +00:00
|
|
|
testCompile "junit:junit:$junit_version"
|
2017-03-22 15:52:54 +00:00
|
|
|
testCompile "commons-fileupload:commons-fileupload:$fileupload_version"
|
2016-02-23 17:17:46 +00:00
|
|
|
|
2016-05-20 13:10:34 +00:00
|
|
|
// Guava: Google test library (collections test suite)
|
2017-01-03 14:15:23 +00:00
|
|
|
testCompile "com.google.guava:guava-testlib:$guava_version"
|
2016-05-20 13:10:34 +00:00
|
|
|
|
2016-08-11 14:29:26 +00:00
|
|
|
// Bring in the MockNode infrastructure for writing protocol unit tests.
|
|
|
|
testCompile project(":node")
|
2016-08-30 12:50:02 +00:00
|
|
|
testCompile project(":test-utils")
|
2016-08-11 14:29:26 +00:00
|
|
|
|
2017-03-30 15:27:01 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
|
2016-02-16 14:10:51 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
2017-03-22 15:52:54 +00:00
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
2016-02-16 14:10:51 +00:00
|
|
|
|
2016-04-14 15:51:53 +00:00
|
|
|
// Thread safety annotations
|
|
|
|
compile "com.google.code.findbugs:jsr305:3.0.1"
|
|
|
|
|
2017-03-13 15:57:17 +00:00
|
|
|
// Log4J: logging framework (ONLY explicitly referenced by net.corda.core.utilities.Logging.kt)
|
2016-07-21 12:55:40 +00:00
|
|
|
compile "org.apache.logging.log4j:log4j-core:${log4j_version}"
|
|
|
|
|
2017-03-13 15:57:17 +00:00
|
|
|
// SLF4J: commons-logging bindings for a SLF4J back end
|
|
|
|
compile "org.slf4j:jcl-over-slf4j:$slf4j_version"
|
2017-03-20 17:04:39 +00:00
|
|
|
compile "org.slf4j:slf4j-api:$slf4j_version"
|
2017-03-13 15:57:17 +00:00
|
|
|
|
2016-05-16 09:54:25 +00:00
|
|
|
// AssertJ: for fluent assertions for testing
|
2016-07-04 14:34:45 +00:00
|
|
|
testCompile "org.assertj:assertj-core:${assertj_version}"
|
2016-05-16 09:54:25 +00:00
|
|
|
|
2017-03-07 11:43:06 +00:00
|
|
|
// TODO: Upgrade to junit-quickcheck 0.8, once it is released,
|
|
|
|
// because it depends on org.javassist:javassist instead
|
|
|
|
// of javassist:javassist.
|
2017-03-23 17:32:14 +00:00
|
|
|
testCompile "com.pholser:junit-quickcheck-core:$quickcheck_version"
|
|
|
|
testCompile "com.pholser:junit-quickcheck-generators:$quickcheck_version"
|
2016-08-24 13:57:52 +00:00
|
|
|
|
2016-02-23 17:17:46 +00:00
|
|
|
// Guava: Google utilities library.
|
2017-01-03 14:15:23 +00:00
|
|
|
compile "com.google.guava:guava:$guava_version"
|
2016-02-23 17:17:46 +00:00
|
|
|
|
|
|
|
// RxJava: observable streams of events.
|
2017-02-16 11:02:36 +00:00
|
|
|
compile "io.reactivex:rxjava:$rxjava_version"
|
2016-02-16 14:10:51 +00:00
|
|
|
|
2016-02-29 17:56:03 +00:00
|
|
|
// Apache JEXL: An embeddable expression evaluation library.
|
|
|
|
// This may be temporary until we experiment with other ways to do on-the-fly contract specialisation via an API.
|
|
|
|
compile "org.apache.commons:commons-jexl3:3.0"
|
2016-03-23 11:15:09 +00:00
|
|
|
|
|
|
|
// For JSON
|
2016-07-04 14:34:45 +00:00
|
|
|
compile "com.fasterxml.jackson.core:jackson-databind:${jackson_version}"
|
2016-05-19 13:01:38 +00:00
|
|
|
|
2016-06-09 13:55:45 +00:00
|
|
|
// Java ed25519 implementation. See https://github.com/str4d/ed25519-java/
|
2017-05-18 14:58:35 +00:00
|
|
|
compile "net.i2p.crypto:eddsa:$eddsa_version"
|
2016-07-21 12:56:23 +00:00
|
|
|
|
|
|
|
// Bouncy castle support needed for X509 certificate manipulation
|
|
|
|
compile "org.bouncycastle:bcprov-jdk15on:${bouncycastle_version}"
|
|
|
|
compile "org.bouncycastle:bcpkix-jdk15on:${bouncycastle_version}"
|
2016-09-27 14:17:27 +00:00
|
|
|
|
|
|
|
// JPA 2.1 annotations.
|
|
|
|
compile "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final"
|
2016-10-27 16:13:11 +00:00
|
|
|
|
2017-02-16 11:02:36 +00:00
|
|
|
// Requery: SQL based query & persistence for Kotlin
|
|
|
|
compile "io.requery:requery-kotlin:$requery_version"
|
2017-05-05 11:14:02 +00:00
|
|
|
|
|
|
|
// For AMQP serialisation.
|
2017-05-31 17:33:57 +00:00
|
|
|
compile "org.apache.qpid:proton-j:0.19.0"
|
2017-01-03 14:15:23 +00:00
|
|
|
}
|
2017-03-13 15:57:17 +00:00
|
|
|
|
2017-03-24 13:33:54 +00:00
|
|
|
configurations {
|
|
|
|
testArtifacts.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
|
|
|
task testJar(type: Jar) {
|
|
|
|
classifier "tests"
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
testArtifacts testJar
|
2017-03-13 15:57:17 +00:00
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName 'corda-core'
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
2017-07-18 11:34:56 +00:00
|
|
|
name jar.baseName
|
2017-06-06 14:05:47 +00:00
|
|
|
}
|