Bulk CDK Plugin: use required integration test task name (#45931)
This commit is contained in:
@@ -130,8 +130,9 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The name integrationTestJava is required by airbyte-ci.
|
||||||
project.sourceSets {
|
project.sourceSets {
|
||||||
integrationTest {
|
integrationTestJava {
|
||||||
kotlin {
|
kotlin {
|
||||||
srcDir 'src/test-integration/kotlin'
|
srcDir 'src/test-integration/kotlin'
|
||||||
}
|
}
|
||||||
@@ -158,25 +159,25 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
|
|||||||
dependsOn project.tasks.matching { it.name ==~ /(compile|spotbugs)[a-zA-Z]*Java/ }
|
dependsOn project.tasks.matching { it.name ==~ /(compile|spotbugs)[a-zA-Z]*Java/ }
|
||||||
}
|
}
|
||||||
|
|
||||||
project.tasks.register('integrationTest', Test) {
|
project.tasks.register('integrationTestJava', Test) {
|
||||||
description = 'Runs the integration tests.'
|
description = 'Runs the integration tests.'
|
||||||
group = 'verification'
|
group = 'verification'
|
||||||
testClassesDirs = project.sourceSets.integrationTest.output.classesDirs
|
testClassesDirs = project.sourceSets.integrationTestJava.output.classesDirs
|
||||||
classpath = project.sourceSets.integrationTest.runtimeClasspath
|
classpath = project.sourceSets.integrationTestJava.runtimeClasspath
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
mustRunAfter project.tasks.check
|
mustRunAfter project.tasks.check
|
||||||
}
|
}
|
||||||
|
|
||||||
project.tasks.named('build').configure {
|
project.tasks.named('build').configure {
|
||||||
dependsOn project.tasks.integrationTest
|
dependsOn project.tasks.integrationTestJava
|
||||||
}
|
}
|
||||||
|
|
||||||
project.configurations {
|
project.configurations {
|
||||||
testFixturesImplementation.extendsFrom implementation
|
testFixturesImplementation.extendsFrom implementation
|
||||||
testFixturesRuntimeOnly.extendsFrom runtimeOnly
|
testFixturesRuntimeOnly.extendsFrom runtimeOnly
|
||||||
|
|
||||||
integrationTestImplementation.extendsFrom testImplementation
|
integrationTestJavaImplementation.extendsFrom testImplementation
|
||||||
integrationTestRuntimeOnly.extendsFrom testRuntimeOnly
|
integrationTesJavaRuntimeOnly.extendsFrom testRuntimeOnly
|
||||||
}
|
}
|
||||||
|
|
||||||
project.extensions.create('airbyteBulkConnector', AirbyteBulkConnectorExtension, project)
|
project.extensions.create('airbyteBulkConnector', AirbyteBulkConnectorExtension, project)
|
||||||
|
|||||||
Reference in New Issue
Block a user