mirror of
https://github.com/corda/corda.git
synced 2024-12-29 01:08:57 +00:00
232db9a1fd
This moves a lot of the test support code into its own package which is only imported for tests, so it's not shipped as a part of core Corda. The node currently depends on this support code to compile, although future work could try to separate this out. This change highlights that parts of production code is dependent on test elements (i.e. dummy keys), and makes it harder for such accidental crosses to occur later. An integration test category is also added as part of this work, to contribute towards COR-345.
85 lines
2.5 KiB
Groovy
85 lines
2.5 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: QuasarPlugin
|
|
// Applying the maven plugin means this will get installed locally when running "gradle install"
|
|
apply plugin: 'maven'
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
// apply plugin: 'org.jetbrains.dokka'
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
jcenter()
|
|
maven {
|
|
url 'http://oss.sonatype.org/content/repositories/snapshots'
|
|
}
|
|
maven {
|
|
url 'https://dl.bintray.com/kotlin/exposed'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
test {
|
|
resources {
|
|
srcDir "../config/test"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testCompile 'junit:junit:4.12'
|
|
testCompile "commons-fileupload:commons-fileupload:1.3.2"
|
|
|
|
// Guava: Google test library (collections test suite)
|
|
testCompile "com.google.guava:guava-testlib:19.0"
|
|
|
|
// Bring in the MockNode infrastructure for writing protocol unit tests.
|
|
testCompile project(":node")
|
|
testCompile project(":test-utils")
|
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
compile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
|
|
// Thread safety annotations
|
|
compile "com.google.code.findbugs:jsr305:3.0.1"
|
|
|
|
// Log4J: logging framework (with SLF4J bindings)
|
|
compile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
|
|
compile "org.apache.logging.log4j:log4j-core:${log4j_version}"
|
|
|
|
// AssertJ: for fluent assertions for testing
|
|
testCompile "org.assertj:assertj-core:${assertj_version}"
|
|
|
|
// Guava: Google utilities library.
|
|
compile "com.google.guava:guava:19.0"
|
|
|
|
// RxJava: observable streams of events.
|
|
compile "io.reactivex:rxjava:1.1.6"
|
|
|
|
// Kryo: object graph serialization.
|
|
compile "com.esotericsoftware:kryo:4.0.0"
|
|
compile "de.javakaffee:kryo-serializers:0.38"
|
|
|
|
// 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"
|
|
|
|
// For JSON
|
|
compile "com.fasterxml.jackson.core:jackson-databind:${jackson_version}"
|
|
|
|
// Java ed25519 implementation. See https://github.com/str4d/ed25519-java/
|
|
compile 'net.i2p.crypto:eddsa:0.1.0'
|
|
|
|
// Bouncy castle support needed for X509 certificate manipulation
|
|
compile "org.bouncycastle:bcprov-jdk15on:${bouncycastle_version}"
|
|
compile "org.bouncycastle:bcpkix-jdk15on:${bouncycastle_version}"
|
|
}
|
|
|
|
quasarScan.dependsOn('classes')
|