diff --git a/airbyte-cdk/java/airbyte-cdk/airbyte-commons/build.gradle b/airbyte-cdk/java/airbyte-cdk/airbyte-commons/build.gradle index 3c0ced6ec053..9073e823a0fe 100644 --- a/airbyte-cdk/java/airbyte-cdk/airbyte-commons/build.gradle +++ b/airbyte-cdk/java/airbyte-cdk/airbyte-commons/build.gradle @@ -7,6 +7,9 @@ java { compileJava { options.compilerArgs += "-Xlint:-varargs,-try,-deprecation" } + compileTestJava { + options.compilerArgs += "-Xlint:-try" + } } dependencies { diff --git a/airbyte-cdk/java/airbyte-cdk/core/build.gradle b/airbyte-cdk/java/airbyte-cdk/core/build.gradle index 8fbc1f7f4249..5dccda8a8d05 100644 --- a/airbyte-cdk/java/airbyte-cdk/core/build.gradle +++ b/airbyte-cdk/java/airbyte-cdk/core/build.gradle @@ -3,6 +3,9 @@ java { compileJava { options.compilerArgs += "-Xlint:-deprecation,-try,-rawtypes,-overloads,-cast,-unchecked" } + compileTestJava { + options.compilerArgs += "-Xlint:-try,-divzero,-cast" + } } configurations.all { diff --git a/airbyte-cdk/java/airbyte-cdk/s3-destinations/build.gradle b/airbyte-cdk/java/airbyte-cdk/s3-destinations/build.gradle index 241d0eeadd1c..488d73eebf0b 100644 --- a/airbyte-cdk/java/airbyte-cdk/s3-destinations/build.gradle +++ b/airbyte-cdk/java/airbyte-cdk/s3-destinations/build.gradle @@ -45,3 +45,12 @@ dependencies { } + +java { + compileJava { + options.compilerArgs.remove("-Werror") + } + compileTestJava { + options.compilerArgs += "-Xlint:-try" + } +} \ No newline at end of file diff --git a/airbyte-cdk/java/airbyte-cdk/typing-deduping/build.gradle b/airbyte-cdk/java/airbyte-cdk/typing-deduping/build.gradle index 6571d5e3b761..7f001ddb88ac 100644 --- a/airbyte-cdk/java/airbyte-cdk/typing-deduping/build.gradle +++ b/airbyte-cdk/java/airbyte-cdk/typing-deduping/build.gradle @@ -18,3 +18,9 @@ dependencies { testFixturesImplementation 'org.junit.jupiter:junit-jupiter-params' testFixturesImplementation 'org.mockito:mockito-core:4.6.1' } + +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} \ No newline at end of file diff --git a/airbyte-integrations/connectors/destination-azure-blob-storage/build.gradle b/airbyte-integrations/connectors/destination-azure-blob-storage/build.gradle index 772df9a2651f..68dfe0c1cad3 100644 --- a/airbyte-integrations/connectors/destination-azure-blob-storage/build.gradle +++ b/airbyte-integrations/connectors/destination-azure-blob-storage/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-cassandra/build.gradle b/airbyte-integrations/connectors/destination-cassandra/build.gradle index af5ff89ff1bd..b9774a9b9c7f 100644 --- a/airbyte-integrations/connectors/destination-cassandra/build.gradle +++ b/airbyte-integrations/connectors/destination-cassandra/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-clickhouse-strict-encrypt/build.gradle b/airbyte-integrations/connectors/destination-clickhouse-strict-encrypt/build.gradle index cd1363bf76e5..d1a316d740a4 100644 --- a/airbyte-integrations/connectors/destination-clickhouse-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/destination-clickhouse-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-clickhouse/build.gradle b/airbyte-integrations/connectors/destination-clickhouse/build.gradle index a4130438a6b1..0386841d5f45 100644 --- a/airbyte-integrations/connectors/destination-clickhouse/build.gradle +++ b/airbyte-integrations/connectors/destination-clickhouse/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-csv/build.gradle b/airbyte-integrations/connectors/destination-csv/build.gradle index dc0ddb9b826c..d4a73e5d7143 100644 --- a/airbyte-integrations/connectors/destination-csv/build.gradle +++ b/airbyte-integrations/connectors/destination-csv/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-databricks/build.gradle b/airbyte-integrations/connectors/destination-databricks/build.gradle index 9726e2592dda..a3a3c6bb8ca8 100644 --- a/airbyte-integrations/connectors/destination-databricks/build.gradle +++ b/airbyte-integrations/connectors/destination-databricks/build.gradle @@ -24,6 +24,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-dev-null/build.gradle b/airbyte-integrations/connectors/destination-dev-null/build.gradle index 58c82aa8de97..e167b803db50 100644 --- a/airbyte-integrations/connectors/destination-dev-null/build.gradle +++ b/airbyte-integrations/connectors/destination-dev-null/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-doris/build.gradle b/airbyte-integrations/connectors/destination-doris/build.gradle index 1fce3f43fb34..1fe67aaf8ff2 100644 --- a/airbyte-integrations/connectors/destination-doris/build.gradle +++ b/airbyte-integrations/connectors/destination-doris/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-dynamodb/build.gradle b/airbyte-integrations/connectors/destination-dynamodb/build.gradle index e55ede35ef47..4ae5c529215b 100644 --- a/airbyte-integrations/connectors/destination-dynamodb/build.gradle +++ b/airbyte-integrations/connectors/destination-dynamodb/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-e2e-test/build.gradle b/airbyte-integrations/connectors/destination-e2e-test/build.gradle index e08a1eda3bd4..c8d98e1ddc2b 100644 --- a/airbyte-integrations/connectors/destination-e2e-test/build.gradle +++ b/airbyte-integrations/connectors/destination-e2e-test/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-elasticsearch-strict-encrypt/build.gradle b/airbyte-integrations/connectors/destination-elasticsearch-strict-encrypt/build.gradle index 9583e882efba..6cd2f88febbe 100644 --- a/airbyte-integrations/connectors/destination-elasticsearch-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/destination-elasticsearch-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-elasticsearch/build.gradle b/airbyte-integrations/connectors/destination-elasticsearch/build.gradle index 89cf33888fd5..52c7536993c1 100644 --- a/airbyte-integrations/connectors/destination-elasticsearch/build.gradle +++ b/airbyte-integrations/connectors/destination-elasticsearch/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-exasol/build.gradle b/airbyte-integrations/connectors/destination-exasol/build.gradle index ce7a81b0d460..3380731e417d 100644 --- a/airbyte-integrations/connectors/destination-exasol/build.gradle +++ b/airbyte-integrations/connectors/destination-exasol/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-gcs/build.gradle b/airbyte-integrations/connectors/destination-gcs/build.gradle index 326920e6ef5a..a524445249d2 100644 --- a/airbyte-integrations/connectors/destination-gcs/build.gradle +++ b/airbyte-integrations/connectors/destination-gcs/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-iceberg/build.gradle b/airbyte-integrations/connectors/destination-iceberg/build.gradle index bccc1dc02e27..37f06943d35d 100644 --- a/airbyte-integrations/connectors/destination-iceberg/build.gradle +++ b/airbyte-integrations/connectors/destination-iceberg/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-kafka/build.gradle b/airbyte-integrations/connectors/destination-kafka/build.gradle index 18a718371e4a..69da18f35960 100644 --- a/airbyte-integrations/connectors/destination-kafka/build.gradle +++ b/airbyte-integrations/connectors/destination-kafka/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-keen/build.gradle b/airbyte-integrations/connectors/destination-keen/build.gradle index 70abafa1ef0c..777118dbb370 100644 --- a/airbyte-integrations/connectors/destination-keen/build.gradle +++ b/airbyte-integrations/connectors/destination-keen/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-kinesis/build.gradle b/airbyte-integrations/connectors/destination-kinesis/build.gradle index dde7ccf51adf..3abe284a89a8 100644 --- a/airbyte-integrations/connectors/destination-kinesis/build.gradle +++ b/airbyte-integrations/connectors/destination-kinesis/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-local-json/build.gradle b/airbyte-integrations/connectors/destination-local-json/build.gradle index e03588646b48..84a09417b178 100644 --- a/airbyte-integrations/connectors/destination-local-json/build.gradle +++ b/airbyte-integrations/connectors/destination-local-json/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-mariadb-columnstore/build.gradle b/airbyte-integrations/connectors/destination-mariadb-columnstore/build.gradle index 130202a52e8c..8d545e9b1813 100644 --- a/airbyte-integrations/connectors/destination-mariadb-columnstore/build.gradle +++ b/airbyte-integrations/connectors/destination-mariadb-columnstore/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-mongodb-strict-encrypt/build.gradle b/airbyte-integrations/connectors/destination-mongodb-strict-encrypt/build.gradle index 2c5e40cd2265..106b17a3248c 100644 --- a/airbyte-integrations/connectors/destination-mongodb-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/destination-mongodb-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-mongodb/build.gradle b/airbyte-integrations/connectors/destination-mongodb/build.gradle index f442eee32d74..cad1ef429466 100644 --- a/airbyte-integrations/connectors/destination-mongodb/build.gradle +++ b/airbyte-integrations/connectors/destination-mongodb/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-mqtt/build.gradle b/airbyte-integrations/connectors/destination-mqtt/build.gradle index 13ae29dff017..599b538f4ac2 100644 --- a/airbyte-integrations/connectors/destination-mqtt/build.gradle +++ b/airbyte-integrations/connectors/destination-mqtt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-mssql-strict-encrypt/build.gradle b/airbyte-integrations/connectors/destination-mssql-strict-encrypt/build.gradle index cb4ca4ea5028..09e3a703a2b6 100644 --- a/airbyte-integrations/connectors/destination-mssql-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/destination-mssql-strict-encrypt/build.gradle @@ -12,6 +12,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-mssql/build.gradle b/airbyte-integrations/connectors/destination-mssql/build.gradle index 9606e4d90f08..ba588da10bce 100644 --- a/airbyte-integrations/connectors/destination-mssql/build.gradle +++ b/airbyte-integrations/connectors/destination-mssql/build.gradle @@ -12,6 +12,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-mysql-strict-encrypt/build.gradle b/airbyte-integrations/connectors/destination-mysql-strict-encrypt/build.gradle index d19379c282eb..ac8e77da74ea 100644 --- a/airbyte-integrations/connectors/destination-mysql-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/destination-mysql-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-mysql/build.gradle b/airbyte-integrations/connectors/destination-mysql/build.gradle index 2523e89d85c3..8de8ca4e8497 100644 --- a/airbyte-integrations/connectors/destination-mysql/build.gradle +++ b/airbyte-integrations/connectors/destination-mysql/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-oracle-strict-encrypt/build.gradle b/airbyte-integrations/connectors/destination-oracle-strict-encrypt/build.gradle index 395c555e63dd..0e940345ab00 100644 --- a/airbyte-integrations/connectors/destination-oracle-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/destination-oracle-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-oracle/build.gradle b/airbyte-integrations/connectors/destination-oracle/build.gradle index 2113ccbaade8..a192ee34744a 100644 --- a/airbyte-integrations/connectors/destination-oracle/build.gradle +++ b/airbyte-integrations/connectors/destination-oracle/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-postgres-strict-encrypt/build.gradle b/airbyte-integrations/connectors/destination-postgres-strict-encrypt/build.gradle index 98d61dd374d3..ca5db84576a7 100644 --- a/airbyte-integrations/connectors/destination-postgres-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/destination-postgres-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-postgres/build.gradle b/airbyte-integrations/connectors/destination-postgres/build.gradle index d4015cc71204..a685564c1d60 100644 --- a/airbyte-integrations/connectors/destination-postgres/build.gradle +++ b/airbyte-integrations/connectors/destination-postgres/build.gradle @@ -12,6 +12,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-pubsub/build.gradle b/airbyte-integrations/connectors/destination-pubsub/build.gradle index 9b2755bd2496..f0c8f25ea7f4 100644 --- a/airbyte-integrations/connectors/destination-pubsub/build.gradle +++ b/airbyte-integrations/connectors/destination-pubsub/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-pulsar/build.gradle b/airbyte-integrations/connectors/destination-pulsar/build.gradle index a56f39c765b6..fad585d1ed6b 100644 --- a/airbyte-integrations/connectors/destination-pulsar/build.gradle +++ b/airbyte-integrations/connectors/destination-pulsar/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-r2/build.gradle b/airbyte-integrations/connectors/destination-r2/build.gradle index 27974417f756..94626b963c02 100644 --- a/airbyte-integrations/connectors/destination-r2/build.gradle +++ b/airbyte-integrations/connectors/destination-r2/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-redis/build.gradle b/airbyte-integrations/connectors/destination-redis/build.gradle index 4d1b5a51ad3b..83cf3a207e87 100644 --- a/airbyte-integrations/connectors/destination-redis/build.gradle +++ b/airbyte-integrations/connectors/destination-redis/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-redpanda/build.gradle b/airbyte-integrations/connectors/destination-redpanda/build.gradle index 5c0d05175509..a79982fe7c56 100644 --- a/airbyte-integrations/connectors/destination-redpanda/build.gradle +++ b/airbyte-integrations/connectors/destination-redpanda/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-redshift/build.gradle b/airbyte-integrations/connectors/destination-redshift/build.gradle index 0b233aeebe4f..8b3bd50ba5fd 100644 --- a/airbyte-integrations/connectors/destination-redshift/build.gradle +++ b/airbyte-integrations/connectors/destination-redshift/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-rockset/build.gradle b/airbyte-integrations/connectors/destination-rockset/build.gradle index 8757184533a3..a5e64c058290 100644 --- a/airbyte-integrations/connectors/destination-rockset/build.gradle +++ b/airbyte-integrations/connectors/destination-rockset/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-s3-glue/build.gradle b/airbyte-integrations/connectors/destination-s3-glue/build.gradle index 95db43ec7be1..23f96e515697 100644 --- a/airbyte-integrations/connectors/destination-s3-glue/build.gradle +++ b/airbyte-integrations/connectors/destination-s3-glue/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-scylla/build.gradle b/airbyte-integrations/connectors/destination-scylla/build.gradle index 10f7738a7944..512279a1345e 100644 --- a/airbyte-integrations/connectors/destination-scylla/build.gradle +++ b/airbyte-integrations/connectors/destination-scylla/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-selectdb/build.gradle b/airbyte-integrations/connectors/destination-selectdb/build.gradle index 34d2bf6f56e8..0a654ec66f67 100644 --- a/airbyte-integrations/connectors/destination-selectdb/build.gradle +++ b/airbyte-integrations/connectors/destination-selectdb/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-starburst-galaxy/build.gradle b/airbyte-integrations/connectors/destination-starburst-galaxy/build.gradle index 2fb03ea6e7e8..ffe2bf71cf6b 100644 --- a/airbyte-integrations/connectors/destination-starburst-galaxy/build.gradle +++ b/airbyte-integrations/connectors/destination-starburst-galaxy/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-teradata/build.gradle b/airbyte-integrations/connectors/destination-teradata/build.gradle index 3f075249bd8a..0f1f2ebe89d4 100644 --- a/airbyte-integrations/connectors/destination-teradata/build.gradle +++ b/airbyte-integrations/connectors/destination-teradata/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-tidb/build.gradle b/airbyte-integrations/connectors/destination-tidb/build.gradle index 2f8e67c4f02a..e0845bc0ee01 100644 --- a/airbyte-integrations/connectors/destination-tidb/build.gradle +++ b/airbyte-integrations/connectors/destination-tidb/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-vertica/build.gradle b/airbyte-integrations/connectors/destination-vertica/build.gradle index 04c3d69c09c4..d5392f6c238b 100644 --- a/airbyte-integrations/connectors/destination-vertica/build.gradle +++ b/airbyte-integrations/connectors/destination-vertica/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/destination-yugabytedb/build.gradle b/airbyte-integrations/connectors/destination-yugabytedb/build.gradle index 4be4d3367015..2186a1b5d8ee 100644 --- a/airbyte-integrations/connectors/destination-yugabytedb/build.gradle +++ b/airbyte-integrations/connectors/destination-yugabytedb/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-bigquery/build.gradle b/airbyte-integrations/connectors/source-bigquery/build.gradle index 9fd6b8bca041..8a79a509d68e 100644 --- a/airbyte-integrations/connectors/source-bigquery/build.gradle +++ b/airbyte-integrations/connectors/source-bigquery/build.gradle @@ -9,6 +9,16 @@ airbyteJavaConnector { 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 { diff --git a/airbyte-integrations/connectors/source-clickhouse-strict-encrypt/build.gradle b/airbyte-integrations/connectors/source-clickhouse-strict-encrypt/build.gradle index 19a23187dfd8..a6c2dfa8b3d7 100644 --- a/airbyte-integrations/connectors/source-clickhouse-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/source-clickhouse-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-clickhouse/build.gradle b/airbyte-integrations/connectors/source-clickhouse/build.gradle index 04d3b5925ca6..ae4d2a7b12ca 100644 --- a/airbyte-integrations/connectors/source-clickhouse/build.gradle +++ b/airbyte-integrations/connectors/source-clickhouse/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-cockroachdb/build.gradle b/airbyte-integrations/connectors/source-cockroachdb/build.gradle index bd124ce8a135..18e96169143e 100644 --- a/airbyte-integrations/connectors/source-cockroachdb/build.gradle +++ b/airbyte-integrations/connectors/source-cockroachdb/build.gradle @@ -9,6 +9,16 @@ airbyteJavaConnector { 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 { diff --git a/airbyte-integrations/connectors/source-db2/build.gradle b/airbyte-integrations/connectors/source-db2/build.gradle index 0a0bcff91cff..d6b508b8ada9 100644 --- a/airbyte-integrations/connectors/source-db2/build.gradle +++ b/airbyte-integrations/connectors/source-db2/build.gradle @@ -9,6 +9,16 @@ airbyteJavaConnector { 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 { diff --git a/airbyte-integrations/connectors/source-dynamodb/build.gradle b/airbyte-integrations/connectors/source-dynamodb/build.gradle index 3a471ba3f6d6..f555ca183d4d 100644 --- a/airbyte-integrations/connectors/source-dynamodb/build.gradle +++ b/airbyte-integrations/connectors/source-dynamodb/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-e2e-test-cloud/build.gradle b/airbyte-integrations/connectors/source-e2e-test-cloud/build.gradle index 07e48c716746..1a3b3f3109eb 100644 --- a/airbyte-integrations/connectors/source-e2e-test-cloud/build.gradle +++ b/airbyte-integrations/connectors/source-e2e-test-cloud/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-e2e-test/build.gradle b/airbyte-integrations/connectors/source-e2e-test/build.gradle index a5545ffa2089..148e0cf1922b 100644 --- a/airbyte-integrations/connectors/source-e2e-test/build.gradle +++ b/airbyte-integrations/connectors/source-e2e-test/build.gradle @@ -9,6 +9,16 @@ airbyteJavaConnector { 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 { diff --git a/airbyte-integrations/connectors/source-elasticsearch/build.gradle b/airbyte-integrations/connectors/source-elasticsearch/build.gradle index 9e3253a80456..31f1cfca5fcc 100644 --- a/airbyte-integrations/connectors/source-elasticsearch/build.gradle +++ b/airbyte-integrations/connectors/source-elasticsearch/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-kafka/build.gradle b/airbyte-integrations/connectors/source-kafka/build.gradle index a8ebfaf3c75c..4a3137bec286 100644 --- a/airbyte-integrations/connectors/source-kafka/build.gradle +++ b/airbyte-integrations/connectors/source-kafka/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-mongodb-strict-encrypt/build.gradle b/airbyte-integrations/connectors/source-mongodb-strict-encrypt/build.gradle index 785052ac8c0d..d2557caffc6b 100644 --- a/airbyte-integrations/connectors/source-mongodb-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/source-mongodb-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-oracle-strict-encrypt/build.gradle b/airbyte-integrations/connectors/source-oracle-strict-encrypt/build.gradle index f8801c5d29a1..3878e876b4e9 100644 --- a/airbyte-integrations/connectors/source-oracle-strict-encrypt/build.gradle +++ b/airbyte-integrations/connectors/source-oracle-strict-encrypt/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-oracle/build.gradle b/airbyte-integrations/connectors/source-oracle/build.gradle index 207c8d252d69..35abccdd41fa 100644 --- a/airbyte-integrations/connectors/source-oracle/build.gradle +++ b/airbyte-integrations/connectors/source-oracle/build.gradle @@ -9,6 +9,16 @@ airbyteJavaConnector { 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 { diff --git a/airbyte-integrations/connectors/source-redshift/build.gradle b/airbyte-integrations/connectors/source-redshift/build.gradle index e2c9b3879051..2f4952d6e725 100644 --- a/airbyte-integrations/connectors/source-redshift/build.gradle +++ b/airbyte-integrations/connectors/source-redshift/build.gradle @@ -9,6 +9,16 @@ airbyteJavaConnector { 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 { diff --git a/airbyte-integrations/connectors/source-sftp/build.gradle b/airbyte-integrations/connectors/source-sftp/build.gradle index 14fd4e5bf81e..da35e916d0e2 100644 --- a/airbyte-integrations/connectors/source-sftp/build.gradle +++ b/airbyte-integrations/connectors/source-sftp/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-snowflake/build.gradle b/airbyte-integrations/connectors/source-snowflake/build.gradle index 9270de70fd35..8b44e4582d2f 100644 --- a/airbyte-integrations/connectors/source-snowflake/build.gradle +++ b/airbyte-integrations/connectors/source-snowflake/build.gradle @@ -9,6 +9,13 @@ airbyteJavaConnector { useLocalCdk = false } +//remove once upgrading the CDK version to 0.4.x or later +java { + compileJava { + options.compilerArgs.remove("-Werror") + } +} + airbyteJavaConnector.addCdkDependencies() application { diff --git a/airbyte-integrations/connectors/source-teradata/build.gradle b/airbyte-integrations/connectors/source-teradata/build.gradle index a2863cf774c6..1e3ec17dcab5 100644 --- a/airbyte-integrations/connectors/source-teradata/build.gradle +++ b/airbyte-integrations/connectors/source-teradata/build.gradle @@ -9,6 +9,16 @@ airbyteJavaConnector { 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 { diff --git a/airbyte-integrations/connectors/source-tidb/build.gradle b/airbyte-integrations/connectors/source-tidb/build.gradle index fa8ea426cbda..1368609a3dea 100644 --- a/airbyte-integrations/connectors/source-tidb/build.gradle +++ b/airbyte-integrations/connectors/source-tidb/build.gradle @@ -9,6 +9,16 @@ airbyteJavaConnector { 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 { diff --git a/build.gradle b/build.gradle index 2caf9a735fa4..0573f02fe661 100644 --- a/build.gradle +++ b/build.gradle @@ -439,6 +439,14 @@ subprojects { subproj -> java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 + compileJava { + options.compilerArgs += ["-Werror", "-Xlint:all,-serial,-processing"] + } + compileTestJava { + //rawtypes and unchecked are necessary for mockito + //deprecation and removal are removed from error since we should still test those constructs. + options.compilerArgs += ["-Werror", "-Xlint:all,-serial,-processing,-rawtypes,-unchecked,-deprecation,-removal"] + } } if (isConnectorProject(subproj)) {