Skip to content

Commit 0303ae5

Browse files
author
Marius Posta
authored
source-sftp: adopt CDK 0.20.4 (#35221)
1 parent 6eabaf2 commit 0303ae5

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
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.sftp.SftpSource'
2313
}
@@ -26,5 +16,5 @@ dependencies {
2616
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.13.2'
2717
implementation 'com.jcraft:jsch:0.1.55'
2818

29-
testImplementation libs.testcontainers
19+
testImplementation 'org.testcontainers:testcontainers:1.19.4'
3020
}

airbyte-integrations/connectors/source-sftp/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ data:
55
connectorSubtype: file
66
connectorType: source
77
definitionId: a827c52e-791c-4135-a245-e233c5255199
8-
dockerImageTag: 0.2.1
8+
dockerImageTag: 0.2.2
99
dockerRepository: airbyte/source-sftp
1010
documentationUrl: https://docs.airbyte.com/integrations/sources/sftp
1111
githubIssueLabel: source-sftp

airbyte-integrations/connectors/source-sftp/src/main/java/io/airbyte/integrations/source/sftp/SftpClient.java

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public boolean isConnected() {
9090
return channelSftp != null && channelSftp.isConnected();
9191
}
9292

93+
@SuppressWarnings("rawtypes")
9394
public Vector lsFile(SupportedFileExtension fileExtension) {
9495
try {
9596
return channelSftp.ls("*." + fileExtension.typeName);

airbyte-integrations/connectors/source-sftp/src/main/java/io/airbyte/integrations/source/sftp/SftpCommand.java

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public Map<String, JsonNode> getFilesSchemas() {
7979
return fileSchemas;
8080
}
8181

82+
@SuppressWarnings("unchecked")
8283
private Set<String> getFileNames() {
8384
checkIfConnected();
8485
Vector<LsEntry> entries = new Vector<>();

docs/integrations/sources/sftp.md

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ More formats \(e.g. Apache Avro\) will be supported in the future.
108108

109109
| Version | Date | Pull Request | Subject |
110110
|:--------|:-----------|:---------------------------------------------------------|:-------------------------------------------------------|
111+
| 0.2.2 | 2024-02-13 | [35221](https://github.com/airbytehq/airbyte/pull/35221) | Adopt CDK 0.20.4 |
111112
| 0.2.1 | 2024-01-24 | [34453](https://github.com/airbytehq/airbyte/pull/34453) | bump CDK version |
112113
| 0.2.0 | 2024-01-15 | [34265](https://github.com/airbytehq/airbyte/pull/34265) | Remove LEGACY state flag |
113114
| 0.1.2 | 2022-06-17 | [13864](https://github.com/airbytehq/airbyte/pull/13864) | Updated stacktrace format for any trace message errors |

0 commit comments

Comments
 (0)