corda/testing/test-common/build.gradle

44 lines
1.4 KiB
Groovy

apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'net.corda.plugins.api-scanner'
apply plugin: 'corda.common-publishing'
description 'Corda Test Common module'
dependencies {
implementation project(':core')
implementation project(':node-api')
// Unit testing helpers.
implementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
implementation "junit:junit:$junit_version"
implementation "org.slf4j:slf4j-api:$slf4j_version"
runtimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
runtimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
runtimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
implementation 'org.hamcrest:hamcrest-library:2.1'
implementation "org.mockito.kotlin:mockito-kotlin:$mockito_kotlin_version"
implementation "org.mockito:mockito-core:$mockito_version"
implementation "org.assertj:assertj-core:$assertj_version"
implementation "com.natpryce:hamkrest:$hamkrest_version"
}
jar {
baseName 'corda-test-common'
manifest {
// This JAR is part of Corda's testing framework.
// Driver will not include it as part of an out-of-process node.
attributes('Corda-Testing': true)
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}