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-09-29 15:55:26 +00:00
|
|
|
apply plugin: 'net.corda.plugins.api-scanner'
|
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'
|
|
|
|
|
2017-11-01 15:35:56 +00:00
|
|
|
configurations {
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
2019-05-20 10:57:56 +00:00
|
|
|
integrationTestRuntimeOnly.extendsFrom testRuntimeOnly
|
2017-11-01 15:35:56 +00:00
|
|
|
|
|
|
|
smokeTestCompile.extendsFrom compile
|
2019-05-20 10:57:56 +00:00
|
|
|
smokeTestRuntimeOnly.extendsFrom runtimeOnly
|
2017-11-01 15:35:56 +00:00
|
|
|
}
|
|
|
|
|
2016-02-16 14:10:51 +00:00
|
|
|
dependencies {
|
2019-05-15 15:40:12 +00:00
|
|
|
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
2019-05-20 10:57:56 +00:00
|
|
|
testImplementation "junit:junit:$junit_version"
|
|
|
|
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
2019-05-15 15:40:12 +00:00
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
2019-05-20 10:57:56 +00:00
|
|
|
|
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
|
|
|
|
2018-04-24 13:03:41 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$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
|
|
|
|
2018-07-16 16:51:20 +00:00
|
|
|
// Hamkrest, for fluent, composable matchers
|
2018-07-19 13:21:07 +00:00
|
|
|
testCompile "com.natpryce:hamkrest:$hamkrest_version"
|
2018-07-16 16:51:20 +00:00
|
|
|
|
2016-04-14 15:51:53 +00:00
|
|
|
// Thread safety annotations
|
2017-11-23 22:27:24 +00:00
|
|
|
compile "com.google.code.findbugs:jsr305:$jsr305_version"
|
2016-04-14 15:51:53 +00:00
|
|
|
|
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
|
|
|
|
2016-02-23 17:17:46 +00:00
|
|
|
// Guava: Google utilities library.
|
2017-08-29 08:56:26 +00:00
|
|
|
testCompile "com.google.guava:guava:$guava_version"
|
2016-02-23 17:17:46 +00:00
|
|
|
|
2018-08-24 16:17:22 +00:00
|
|
|
// For caches rather than guava
|
|
|
|
compile "com.github.ben-manes.caffeine:caffeine:$caffeine_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"
|
2019-05-21 16:48:32 +00:00
|
|
|
|
|
|
|
compile "org.apache.commons:commons-lang3:3.9"
|
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
|
|
|
|
2019-03-26 09:35:18 +00:00
|
|
|
// JPA 2.2 annotations.
|
|
|
|
compile "javax.persistence:javax.persistence-api:2.2"
|
2017-11-17 14:18:16 +00:00
|
|
|
|
|
|
|
// required to use @Type annotation
|
|
|
|
compile "org.hibernate:hibernate-core:$hibernate_version"
|
2019-01-13 20:15:05 +00:00
|
|
|
|
|
|
|
compile group: "io.github.classgraph", name: "classgraph", version: class_graph_version
|
2019-07-09 09:09:21 +00:00
|
|
|
|
|
|
|
testCompile "com.nhaarman:mockito-kotlin:$mockito_kotlin_version"
|
|
|
|
testCompile "org.mockito:mockito-core:$mockito_version"
|
|
|
|
testCompile "org.assertj:assertj-core:$assertj_version"
|
|
|
|
testCompile "com.natpryce:hamkrest:$hamkrest_version"
|
2019-09-03 15:40:08 +00:00
|
|
|
testCompile 'org.hamcrest:hamcrest-library:2.1'
|
|
|
|
|
2017-01-03 14:15:23 +00:00
|
|
|
}
|
2017-03-13 15:57:17 +00:00
|
|
|
|
2017-09-05 06:47:35 +00:00
|
|
|
// TODO Consider moving it to quasar-utils in the future (introduced with PR-1388)
|
|
|
|
task copyQuasarJar(type: Copy) {
|
|
|
|
from configurations.quasar
|
|
|
|
into "$project.rootProject.projectDir/lib"
|
|
|
|
rename { filename -> "quasar.jar"}
|
|
|
|
}
|
|
|
|
|
2018-06-11 19:34:59 +00:00
|
|
|
jar {
|
|
|
|
finalizedBy(copyQuasarJar)
|
|
|
|
baseName 'corda-core'
|
|
|
|
}
|
2017-09-05 06:47:35 +00:00
|
|
|
|
2017-03-24 13:33:54 +00:00
|
|
|
configurations {
|
2019-05-20 10:57:56 +00:00
|
|
|
testArtifacts.extendsFrom testRuntimeClasspath
|
2017-03-24 13:33:54 +00:00
|
|
|
}
|
|
|
|
|
2019-07-02 18:38:33 +00:00
|
|
|
|
|
|
|
test{
|
|
|
|
maxParallelForks = (System.env.CORDA_CORE_TESTING_FORKS == null) ? 1 : "$System.env.CORDA_CORE_TESTING_FORKS".toInteger()
|
2019-05-20 13:26:42 +00:00
|
|
|
}
|
|
|
|
|
2017-03-24 13:33:54 +00:00
|
|
|
task testJar(type: Jar) {
|
|
|
|
classifier "tests"
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
|
|
|
|
2019-05-30 09:09:11 +00:00
|
|
|
// quasar exclusions upon agent code instrumentation at run-time
|
|
|
|
quasar {
|
|
|
|
excludePackages.addAll(
|
|
|
|
"antlr**",
|
|
|
|
"com.codahale**",
|
|
|
|
"com.fasterxml.**",
|
|
|
|
"com.github.benmanes.caffeine.**",
|
|
|
|
"com.google.**",
|
|
|
|
"com.lmax.**",
|
|
|
|
"com.zaxxer.**",
|
|
|
|
"net.bytebuddy**",
|
|
|
|
"io.github.classgraph**",
|
|
|
|
"io.netty*",
|
|
|
|
"liquibase**",
|
|
|
|
"net.i2p.crypto.**",
|
|
|
|
"nonapi.io.github.classgraph.**",
|
|
|
|
"org.apiguardian.**",
|
|
|
|
"org.bouncycastle**",
|
|
|
|
"org.codehaus.**",
|
|
|
|
"org.h2**",
|
|
|
|
"org.hibernate**",
|
|
|
|
"org.jboss.**",
|
|
|
|
"org.objenesis**",
|
|
|
|
"org.w3c.**",
|
|
|
|
"org.xml**",
|
|
|
|
"org.yaml**",
|
|
|
|
"rx**")
|
|
|
|
}
|
|
|
|
|
2017-03-24 13:33:54 +00:00
|
|
|
artifacts {
|
|
|
|
testArtifacts testJar
|
2017-03-13 15:57:17 +00:00
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
|
2017-09-29 15:55:26 +00:00
|
|
|
scanApi {
|
|
|
|
excludeClasses = [
|
|
|
|
// Kotlin should probably have declared this class as "synthetic".
|
|
|
|
"net.corda.core.Utils\$toFuture\$1\$subscription\$1"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-06-06 14:05:47 +00:00
|
|
|
publish {
|
2017-07-18 11:34:56 +00:00
|
|
|
name jar.baseName
|
2017-06-06 14:05:47 +00:00
|
|
|
}
|