mirror of
https://github.com/corda/corda.git
synced 2024-12-20 21:43:14 +00:00
b9f7c1a08a
* Tweak JUnit 5 configurations to keep vintage engine off compile classpaths. * Configure Gradle tests to use JUnit 5.
33 lines
1.0 KiB
Groovy
33 lines
1.0 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'idea'
|
|
|
|
sourceSets {
|
|
integrationTest {
|
|
kotlin {
|
|
compileClasspath += main.output + test.output
|
|
runtimeClasspath += main.output + test.output
|
|
srcDir file('src/integration-test/kotlin')
|
|
}
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
integrationTestCompile.extendsFrom testCompile
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
compile project(':core')
|
|
compile project(':node-api')
|
|
testCompile project(':test-utils')
|
|
testCompile project(':node-driver')
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
|
testImplementation "junit:junit:$junit_version"
|
|
|
|
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}"
|
|
}
|