Skip to content

Commit a9afe95

Browse files
authored
Migrate source mssql from old CDK to new CDK (#63731)
1 parent 008dead commit a9afe95

File tree

86 files changed

+7040
-10604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+7040
-10604
lines changed

airbyte-integrations/connectors/source-mssql/README.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

airbyte-integrations/connectors/source-mssql/acceptance-test-config.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,32 @@
11
plugins {
2-
id 'airbyte-java-connector'
2+
id 'airbyte-bulk-connector'
33
id "io.airbyte.gradle.docker"
44
id 'airbyte-connector-docker-convention'
55
}
66

7-
airbyteJavaConnector {
8-
cdkVersionRequired = '0.48.18'
9-
features = ['db-sources']
10-
useLocalCdk = false
7+
application {
8+
mainClass = 'io.airbyte.integrations.source.mssql.MsSqlServerSource'
119
}
1210

13-
java {
14-
// TODO: rewrite code to avoid javac warnings in the first place
15-
compileJava {
16-
options.compilerArgs += "-Xlint:-try,-rawtypes"
17-
}
18-
compileTestFixturesJava {
19-
options.compilerArgs += "-Xlint:-this-escape"
20-
}
21-
}
22-
23-
application {
24-
mainClass = 'io.airbyte.integrations.source.mssql.MssqlSource'
25-
applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0']
11+
airbyteBulkConnector {
12+
core = 'extract'
13+
toolkits = ['extract-jdbc', 'extract-cdc']
2614
}
2715

2816
dependencies {
29-
implementation 'com.microsoft.sqlserver:mssql-jdbc:12.10.0.jre11'
30-
implementation 'io.debezium:debezium-embedded:3.0.7.Final'
31-
implementation 'io.debezium:debezium-connector-sqlserver:3.0.7.Final'
17+
implementation 'com.microsoft.sqlserver:mssql-jdbc:12.10.1.jre11'
18+
implementation 'com.azure:azure-identity:1.15.3'
19+
implementation 'io.debezium:debezium-embedded:3.3.0.Final'
20+
implementation 'io.debezium:debezium-connector-sqlserver:3.3.0.Final'
3221
implementation 'org.codehaus.plexus:plexus-utils:3.4.2'
33-
34-
testFixturesImplementation 'org.testcontainers:mssqlserver:1.19.0'
22+
api 'org.apache.commons:commons-lang3:3.18.0'
23+
implementation 'org.apache.commons:commons-lang3:3.18.0'
3524

3625
testImplementation 'org.awaitility:awaitility:4.2.0'
3726
testImplementation 'org.hamcrest:hamcrest-all:1.3'
27+
testFixturesImplementation 'org.testcontainers:mssqlserver:1.19.0'
3828
testImplementation 'org.testcontainers:mssqlserver:1.19.0'
39-
}
40-
41-
compileKotlin {
42-
29+
testImplementation 'com.zaxxer:HikariCP:5.1.0'
30+
testImplementation("io.mockk:mockk:1.12.0")
31+
api 'com.google.guava:guava:33.4.0-jre'
4332
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
testExecutionConcurrency=-1
2-
JunitMethodExecutionTimeout=5 m
1+
testExecutionConcurrency=1
2+
JunitMethodExecutionTimeout=5m
3+
cdkVersion=0.1.58

airbyte-integrations/connectors/source-mssql/integration_tests/acceptance.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

airbyte-integrations/connectors/source-mssql/integration_tests/seed/basic.sql

Lines changed: 0 additions & 228 deletions
This file was deleted.

0 commit comments

Comments
 (0)