diff --git a/common/pom.xml b/common/pom.xml index 4d1ed56e..e3011117 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -74,10 +74,6 @@ software.amazon.awssdk aws-json-protocol - - software.amazon.awssdk - url-connection-client - org.apache.avro avro diff --git a/common/src/main/java/com/amazonaws/services/schemaregistry/common/AWSSchemaRegistryClient.java b/common/src/main/java/com/amazonaws/services/schemaregistry/common/AWSSchemaRegistryClient.java index 51e9c76b..3ea406ab 100644 --- a/common/src/main/java/com/amazonaws/services/schemaregistry/common/AWSSchemaRegistryClient.java +++ b/common/src/main/java/com/amazonaws/services/schemaregistry/common/AWSSchemaRegistryClient.java @@ -31,7 +31,6 @@ import software.amazon.awssdk.core.interceptor.ExecutionAttributes; import software.amazon.awssdk.core.interceptor.ExecutionInterceptor; import software.amazon.awssdk.core.retry.RetryPolicy; -import software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient; import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.glue.GlueClient; import software.amazon.awssdk.services.glue.GlueClientBuilder; @@ -94,7 +93,6 @@ public AWSSchemaRegistryClient(@NonNull AwsCredentialsProvider credentialsProvid .builder() .credentialsProvider(credentialsProvider) .overrideConfiguration(overrideConfiguration) - .httpClient(UrlConnectionHttpClient.builder().build()) .region(Region.of(glueSchemaRegistryConfiguration.getRegion())); if (glueSchemaRegistryConfiguration.getEndPoint() != null) { diff --git a/integration-tests/src/test/java/com/amazonaws/services/schemaregistry/integrationtests/kafka/GlueSchemaRegistryKafkaIntegrationTest.java b/integration-tests/src/test/java/com/amazonaws/services/schemaregistry/integrationtests/kafka/GlueSchemaRegistryKafkaIntegrationTest.java index b443703b..f62365c9 100644 --- a/integration-tests/src/test/java/com/amazonaws/services/schemaregistry/integrationtests/kafka/GlueSchemaRegistryKafkaIntegrationTest.java +++ b/integration-tests/src/test/java/com/amazonaws/services/schemaregistry/integrationtests/kafka/GlueSchemaRegistryKafkaIntegrationTest.java @@ -35,7 +35,6 @@ import org.junit.jupiter.params.provider.MethodSource; import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider; import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider; -import software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient; import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.glue.GlueClient; import software.amazon.awssdk.services.glue.model.Compatibility; @@ -108,8 +107,6 @@ public static void tearDown() throws URISyntaxException { .credentialsProvider(awsCredentialsProvider) .region(Region.of(REGION)) .endpointOverride(new URI(SCHEMA_REGISTRY_ENDPOINT_OVERRIDE)) - .httpClient(UrlConnectionHttpClient.builder() - .build()) .build(); for (String schemaName : schemasToCleanUp) { diff --git a/integration-tests/src/test/java/com/amazonaws/services/schemaregistry/integrationtests/kinesis/GlueSchemaRegistryKinesisIntegrationTest.java b/integration-tests/src/test/java/com/amazonaws/services/schemaregistry/integrationtests/kinesis/GlueSchemaRegistryKinesisIntegrationTest.java index e1aa581a..1cb042db 100644 --- a/integration-tests/src/test/java/com/amazonaws/services/schemaregistry/integrationtests/kinesis/GlueSchemaRegistryKinesisIntegrationTest.java +++ b/integration-tests/src/test/java/com/amazonaws/services/schemaregistry/integrationtests/kinesis/GlueSchemaRegistryKinesisIntegrationTest.java @@ -55,7 +55,6 @@ import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider; import software.amazon.awssdk.core.SdkBytes; import software.amazon.awssdk.core.SdkSystemSetting; -import software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient; import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient; import software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient; @@ -188,8 +187,6 @@ public static void tearDown() throws URISyntaxException { .credentialsProvider(awsCredentialsProvider) .region(Region.of(REGION)) .endpointOverride(new URI(SCHEMA_REGISTRY_ENDPOINT_OVERRIDE)) - .httpClient(UrlConnectionHttpClient.builder() - .build()) .build(); for (String schemaName : schemasToCleanUp) {