Skip to content

Commit

Permalink
java CDK: build no longer downloads files from connector registry (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
postamar committed Jan 25, 2024
1 parent 7706cdd commit d01bb65
Show file tree
Hide file tree
Showing 60 changed files with 120 additions and 15,577 deletions.
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ resources/examples/airflow/logs/*
# Summary.md keeps getting added and we just don't like it
docs/SUMMARY.md

# Files generated by unit tests
**/specs_secrets_mask.yaml

# Files generated when downloading connector registry
**/init-oss/src/main/resources/seed/oss_registry.json
**/init-oss/src/main/resources/seed/oss_catalog.json

# Output Files generated by scripts
lowcode_connector_names.txt
num_lowcode_connectors.csv
Expand Down
1 change: 1 addition & 0 deletions airbyte-cdk/java/airbyte-cdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ MavenLocal debugging steps:

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:-----------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 0.15.0 | 2024-01-23 | [\#34441](https://github.com/airbytehq/airbyte/pull/34441) | Removed connector registry and micronaut dependencies. |
| 0.14.2 | 2024-01-24 | [\#34458](https://github.com/airbytehq/airbyte/pull/34458) | Handle case-sensitivity in sentry error grouping |
| 0.14.1 | 2024-01-24 | [\#34468](https://github.com/airbytehq/airbyte/pull/34468) | Add wait for process to be done before ending sync in destination BaseTDTest |
| 0.14.0 | 2024-01-23 | [\#34461](https://github.com/airbytehq/airbyte/pull/34461) | Revert non backward compatible signature changes from 0.13.1 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ java {
}

dependencies {
annotationProcessor platform(libs.micronaut.bom)
annotationProcessor libs.bundles.micronaut.annotation.processor

implementation platform(libs.micronaut.bom)
implementation libs.bundles.micronaut

implementation group: 'joda-time', name: 'joda-time', version: '2.12.5'
implementation 'io.fabric8:kubernetes-client:5.12.2'
implementation 'com.auth0:java-jwt:3.19.2'
Expand All @@ -33,11 +27,8 @@ dependencies {
implementation project(':airbyte-cdk:java:airbyte-cdk:config-models-oss')
implementation project(':airbyte-cdk:java:airbyte-cdk:airbyte-json-validation')

testAnnotationProcessor platform(libs.micronaut.bom)
testAnnotationProcessor libs.bundles.micronaut.test.annotation.processor
testAnnotationProcessor libs.jmh.annotations

testImplementation libs.bundles.micronaut.test
testImplementation 'com.jayway.jsonpath:json-path:2.7.0'
testImplementation 'org.mockito:mockito-inline:4.7.0'
testImplementation libs.postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ java {
}

dependencies {
annotationProcessor libs.bundles.micronaut.annotation.processor
testAnnotationProcessor libs.bundles.micronaut.test.annotation.processor

implementation libs.bundles.micronaut.annotation
testImplementation libs.bundles.micronaut.test

implementation project(':airbyte-cdk:java:airbyte-cdk:airbyte-commons')
implementation project(':airbyte-cdk:java:airbyte-cdk:airbyte-json-validation')
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import io.airbyte.commons.protocol.migrations.MigrationContainer;
import io.airbyte.commons.version.Version;
import io.airbyte.protocol.models.ConfiguredAirbyteCatalog;
import jakarta.annotation.PostConstruct;
import jakarta.inject.Singleton;
import java.util.List;
import java.util.Optional;
import java.util.Set;
Expand All @@ -21,7 +19,6 @@
* This class is intended to apply the transformations required to go from one version of the
* AirbyteProtocol to another.
*/
@Singleton
public class AirbyteMessageMigrator {

private final MigrationContainer<AirbyteMessageMigration<?, ?>> migrationContainer;
Expand All @@ -30,7 +27,6 @@ public AirbyteMessageMigrator(final List<AirbyteMessageMigration<?, ?>> migratio
migrationContainer = new MigrationContainer<>(migrations);
}

@PostConstruct
public void initialize() {
migrationContainer.initialize();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import io.airbyte.commons.protocol.serde.AirbyteMessageDeserializer;
import io.airbyte.commons.protocol.serde.AirbyteMessageSerializer;
import io.airbyte.commons.version.Version;
import jakarta.annotation.PostConstruct;
import jakarta.inject.Singleton;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
Expand All @@ -23,7 +21,6 @@
* This class is intended to help access the serializer/deserializer for a given version of the
* Airbyte Protocol.
*/
@Singleton
public class AirbyteMessageSerDeProvider {

private final List<AirbyteMessageDeserializer<?>> deserializersToRegister;
Expand All @@ -42,7 +39,6 @@ public AirbyteMessageSerDeProvider() {
this(Collections.emptyList(), Collections.emptyList());
}

@PostConstruct
public void initialize() {
deserializersToRegister.forEach(this::registerDeserializer);
serializersToRegister.forEach(this::registerSerializer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
package io.airbyte.commons.protocol;

import io.airbyte.commons.version.Version;
import jakarta.inject.Singleton;

/**
* Factory to build AirbyteMessageVersionedMigrator
*/
@Singleton
public class AirbyteProtocolVersionedMigratorFactory {

private final AirbyteMessageMigrator airbyteMessageMigrator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
import io.airbyte.commons.protocol.migrations.ConfiguredAirbyteCatalogMigration;
import io.airbyte.commons.protocol.migrations.MigrationContainer;
import io.airbyte.commons.version.Version;
import jakarta.annotation.PostConstruct;
import jakarta.inject.Singleton;
import java.util.List;
import java.util.Set;

@Singleton
public class ConfiguredAirbyteCatalogMigrator {

private final MigrationContainer<ConfiguredAirbyteCatalogMigration<?, ?>> migrationContainer;
Expand All @@ -22,7 +19,6 @@ public ConfiguredAirbyteCatalogMigrator(final List<ConfiguredAirbyteCatalogMigra
migrationContainer = new MigrationContainer<>(migrations);
}

@PostConstruct
public void initialize() {
migrationContainer.initialize();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

import io.airbyte.commons.version.AirbyteProtocolVersion;
import io.airbyte.protocol.models.AirbyteMessage;
import jakarta.inject.Singleton;

@Singleton
public class AirbyteMessageV0Deserializer extends AirbyteMessageGenericDeserializer<AirbyteMessage> {

public AirbyteMessageV0Deserializer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

import io.airbyte.commons.version.AirbyteProtocolVersion;
import io.airbyte.protocol.models.AirbyteMessage;
import jakarta.inject.Singleton;

@Singleton
public class AirbyteMessageV0Serializer extends AirbyteMessageGenericSerializer<AirbyteMessage> {

public AirbyteMessageV0Serializer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

import io.airbyte.commons.version.AirbyteProtocolVersion;
import io.airbyte.protocol.models.AirbyteMessage;
import jakarta.inject.Singleton;

@Singleton
public class AirbyteMessageV1Deserializer extends AirbyteMessageGenericDeserializer<AirbyteMessage> {

public AirbyteMessageV1Deserializer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

import io.airbyte.commons.version.AirbyteProtocolVersion;
import io.airbyte.protocol.models.AirbyteMessage;
import jakarta.inject.Singleton;

@Singleton
public class AirbyteMessageV1Serializer extends AirbyteMessageGenericSerializer<AirbyteMessage> {

public AirbyteMessageV1Serializer() {
Expand Down

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions airbyte-cdk/java/airbyte-cdk/airbyte-commons/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id 'java-library'
id 'de.undercouch.download' version "5.4.0"
}

java {
Expand All @@ -18,10 +17,3 @@ dependencies {
// this dependency is an exception to the above rule because it is only used INTERNALLY to the commons library.
implementation 'com.jayway.jsonpath:json-path:2.7.0'
}

def downloadSpecSecretMask = tasks.register('downloadSpecSecretMask', Download) {
src 'https://connectors.airbyte.com/files/registries/v0/specs_secrets_mask.yaml'
dest new File(projectDir, 'src/main/resources/seed/specs_secrets_mask.yaml')
overwrite true
}
tasks.named('processResources').configure { dependsOn downloadSpecSecretMask }
Loading

0 comments on commit d01bb65

Please sign in to comment.