Skip to content

Commit

Permalink
source-e2e-test: adopt CDK 0.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
postamar committed Feb 13, 2024
1 parent fa66dc8 commit 3c580eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
plugins {
id 'application'
id 'airbyte-java-connector'
}

airbyteJavaConnector {
cdkVersionRequired = '0.7.7'
cdkVersionRequired = '0.20.4'
features = ['db-sources']
useLocalCdk = false
}

//remove once upgrading the CDK version to 0.4.x or later
java {
compileJava {
options.compilerArgs.remove("-Werror")
}
}

airbyteJavaConnector.addCdkDependencies()

application {
mainClass = 'io.airbyte.integrations.source.e2e_test.CloudTestingSources'
}

dependencies {
implementation project(':airbyte-integrations:connectors:source-e2e-test')

integrationTestJavaImplementation project(':airbyte-integrations:connectors:source-e2e-test-cloud')
}
29 changes: 11 additions & 18 deletions airbyte-integrations/connectors/source-e2e-test/build.gradle
Original file line number Diff line number Diff line change
@@ -1,39 +1,32 @@
plugins {
id 'application'
id 'airbyte-java-connector'
}

airbyteJavaConnector {
cdkVersionRequired = '0.7.7'
cdkVersionRequired = '0.20.4'
features = ['db-sources']
useLocalCdk = false
}

//remove once upgrading the CDK version to 0.4.x or later
java {
compileTestJava {
options.compilerArgs.remove("-Werror")
}
compileJava {
options.compilerArgs.remove("-Werror")
}
}

airbyteJavaConnector.addCdkDependencies()

application {
mainClass = 'io.airbyte.integrations.source.e2e_test.TestingSources'
}

dependencies {
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'com.networknt:json-schema-validator:1.0.72'

// random Json object generation from Json schema
// https://github.com/airbytehq/jsongenerator
implementation 'net.jimblackler.jsonschemafriend:core:0.12.1'
implementation 'org.mozilla:rhino-engine:1.7.14'
implementation group: 'com.github.airbytehq', name: 'jsongenerator', version: '1.0.2'


/*
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'com.networknt:json-schema-validator:1.0.72'
implementation 'org.mozilla:rhino-engine:1.7.14'
integrationTestJavaImplementation project(':airbyte-integrations:connectors:source-e2e-test')
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ void testDiscover() throws Exception {
}

@Test
@SuppressWarnings("try")
void testSource() throws Exception {
final SpeedBenchmarkSource speedBenchmarkSource = new SpeedBenchmarkSource();

Expand Down

0 comments on commit 3c580eb

Please sign in to comment.