Skip to content

Commit a65bb29

Browse files
Marius Postaxiaohansong
Marius Posta
authored andcommittedFeb 27, 2024
source-oracle: adopt CDK 0.20.4 (#35225)
1 parent c76f7e0 commit a65bb29

File tree

7 files changed

+9
-45
lines changed

7 files changed

+9
-45
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
plugins {
2-
id 'application'
32
id 'airbyte-java-connector'
43
}
54

65
airbyteJavaConnector {
7-
cdkVersionRequired = '0.13.2'
6+
cdkVersionRequired = '0.20.4'
87
features = ['db-sources']
98
useLocalCdk = false
109
}
1110

12-
//remove once upgrading the CDK version to 0.4.x or later
13-
java {
14-
compileJava {
15-
options.compilerArgs.remove("-Werror")
16-
}
17-
}
18-
19-
airbyteJavaConnector.addCdkDependencies()
20-
2111
application {
2212
mainClass = 'io.airbyte.integrations.source.oracle_strict_encrypt.OracleStrictEncryptSource'
2313
applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0']
@@ -26,14 +16,7 @@ application {
2616
dependencies {
2717
implementation project(':airbyte-integrations:connectors:source-oracle')
2818

29-
// required so that log4j uses a standard xml parser instead of an oracle one (that gets pulled in by the oracle driver)
30-
implementation group: 'xerces', name: 'xercesImpl', version: '2.12.1'
31-
32-
3319
implementation "com.oracle.database.jdbc:ojdbc8-production:19.7.0.0"
3420

35-
testImplementation 'org.apache.commons:commons-lang3:3.11'
36-
testImplementation libs.testcontainers.oracle.xe
37-
38-
integrationTestJavaImplementation project(':airbyte-integrations:connectors:source-oracle-strict-encrypt')
21+
testImplementation 'org.testcontainers:oracle-xe:1.19.4'
3922
}

‎airbyte-integrations/connectors/source-oracle-strict-encrypt/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ data:
1111
connectorSubtype: database
1212
connectorType: source
1313
definitionId: b39a7370-74c3-45a6-ac3a-380d48520a83
14-
dockerImageTag: 0.5.1
14+
dockerImageTag: 0.5.2
1515
dockerRepository: airbyte/source-oracle-strict-encrypt
1616
githubIssueLabel: source-oracle
1717
icon: oracle.svg
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,20 @@
11
plugins {
2-
id 'application'
32
id 'airbyte-java-connector'
43
}
54

65
airbyteJavaConnector {
7-
cdkVersionRequired = '0.13.2'
6+
cdkVersionRequired = '0.20.4'
87
features = ['db-sources']
98
useLocalCdk = false
109
}
1110

12-
//remove once upgrading the CDK version to 0.4.x or later
13-
java {
14-
compileTestJava {
15-
options.compilerArgs.remove("-Werror")
16-
}
17-
compileJava {
18-
options.compilerArgs.remove("-Werror")
19-
}
20-
}
21-
22-
airbyteJavaConnector.addCdkDependencies()
23-
2411
application {
2512
mainClass = 'io.airbyte.integrations.source.oracle.OracleSource'
2613
applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0']
2714
}
2815

2916
dependencies {
30-
31-
// required so that log4j uses a standard xml parser instead of an oracle one (that gets pulled in by the oracle driver)
32-
implementation group: 'xerces', name: 'xercesImpl', version: '2.12.1'
33-
34-
3517
implementation "com.oracle.database.jdbc:ojdbc8-production:19.7.0.0"
3618

37-
testImplementation 'org.apache.commons:commons-lang3:3.11'
38-
testImplementation libs.testcontainers.oracle.xe
19+
testImplementation 'org.testcontainers:oracle-xe:1.19.4'
3920
}

‎airbyte-integrations/connectors/source-oracle/metadata.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data:
99
connectorSubtype: database
1010
connectorType: source
1111
definitionId: b39a7370-74c3-45a6-ac3a-380d48520a83
12-
dockerImageTag: 0.5.1
12+
dockerImageTag: 0.5.2
1313
dockerRepository: airbyte/source-oracle
1414
documentationUrl: https://docs.airbyte.com/integrations/sources/oracle
1515
githubIssueLabel: source-oracle
@@ -18,7 +18,7 @@ data:
1818
name: Oracle DB
1919
registries:
2020
cloud:
21-
dockerImageTag: 0.5.1
21+
dockerImageTag: 0.5.2
2222
dockerRepository: airbyte/source-oracle-strict-encrypt
2323
enabled: true
2424
oss:

‎airbyte-integrations/connectors/source-oracle/src/main/java/io/airbyte/integrations/source/oracle/OracleSource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private static void convertAndImportCertificate(final String certificate) throws
164164
}
165165

166166
private static void runProcess(final String cmd, final Runtime run) throws IOException, InterruptedException {
167-
final Process pr = run.exec(cmd);
167+
final Process pr = run.exec(cmd.split(" "));
168168
if (!pr.waitFor(30, TimeUnit.SECONDS)) {
169169
pr.destroy();
170170
throw new RuntimeException("Timeout while executing: " + cmd);

‎airbyte-integrations/connectors/source-oracle/src/test-integration/java/io/airbyte/integrations/source/oracle/OracleSourceDatatypeTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ protected String getNameSpace() {
9090

9191
@Override
9292
protected void tearDown(final TestDestinationEnv testEnv) {
93-
dslContext.close();
9493
container.close();
9594
}
9695

‎docs/integrations/sources/oracle.md

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ Airbyte has the ability to connect to the Oracle source with 3 network connectiv
132132

133133
| Version | Date | Pull Request | Subject |
134134
|:--------|:-----------| :------------------------------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------|
135+
| 0.5.2 | 2024-02-13 | [35225](https://github.com/airbytehq/airbyte/pull/35225) | Adopt CDK 0.20.4 |
135136
| 0.5.1 | 2024-01-24 | [34453](https://github.com/airbytehq/airbyte/pull/34453) | bump CDK version |
136137
| 0.5.0 | 2023-12-18 | [33485](https://github.com/airbytehq/airbyte/pull/33485) | Remove LEGACY state |
137138
| 0.4.0 | 2023-06-26 | [27737](https://github.com/airbytehq/airbyte/pull/27737) | License Update: Elv2 |

0 commit comments

Comments
 (0)