Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAMEL-21350: Updates/Removes old dependencies #147

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions kafka-avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>

<!-- manages conflict forcing CSB/Camel version -->
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>${avro-version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.List;
import java.util.Map;

import io.confluent.common.config.ConfigException;
import io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient;
import io.confluent.kafka.serializers.AbstractKafkaAvroDeserializer;
import io.confluent.kafka.serializers.KafkaAvroDeserializerConfig;
Expand All @@ -37,16 +36,10 @@ public void configure(KafkaAvroDeserializerConfig config) {
LOG.info("ENTER CustomKafkaAvroDeserializer : configure method ");
LOG.info("ENTER CustomKafkaAvroDeserializer : SCHEMA_REGISTRY_URL " + SCHEMA_REGISTRY_URL);

try {
final List<String> schemas = Collections.singletonList(SCHEMA_REGISTRY_URL);
this.schemaRegistry = new CachedSchemaRegistryClient(schemas, Integer.MAX_VALUE);
this.useSpecificAvroReader = true;

final List<String> schemas = Collections.singletonList(SCHEMA_REGISTRY_URL);
this.schemaRegistry = new CachedSchemaRegistryClient(schemas, Integer.MAX_VALUE);
this.useSpecificAvroReader = true;

} catch (ConfigException e) {
e.printStackTrace();
throw new org.apache.kafka.common.config.ConfigException(e.getMessage());
}
LOG.info("EXIT CustomKafkaAvroDeserializer : configure method ");

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
import java.util.List;
import java.util.Map;

import io.confluent.kafka.schemaregistry.avro.AvroSchema;
import io.confluent.kafka.schemaregistry.avro.AvroSchemaUtils;
import io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient;
import io.confluent.kafka.serializers.AbstractKafkaAvroSerializer;
import io.confluent.kafka.serializers.AvroSchemaUtils;
import io.confluent.kafka.serializers.KafkaAvroSerializerConfig;
import org.apache.kafka.common.config.ConfigException;
import org.apache.kafka.common.serialization.Serializer;
Expand All @@ -46,8 +47,9 @@ public byte[] serialize(String topic, Object record) {
LOG.info("****************serialize*******************************");
LOG.info("Serialize method: topic " + topic);
LOG.info("Serialize method: byte " + record);
AvroSchema schema = new AvroSchema(AvroSchemaUtils.getSchema(record));
return serializeImpl(
getSubjectName(topic, isKey, record, AvroSchemaUtils.getSchema(record)), record);
getSubjectName(topic, isKey, record, schema), record, schema);
}

@Override
Expand Down
1 change: 0 additions & 1 deletion master/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
<id>openshift</id>
<properties>
<sbProfile>openshift</sbProfile>
<jkube.generator.from>registry.access.redhat.com/ubi8/openjdk-17</jkube.generator.from>
</properties>
<activation>
<property>
Expand Down
29 changes: 7 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,13 @@
<properties>
<camel-version>4.9.0-SNAPSHOT</camel-version>
<skip.starting.camel.context>false</skip.starting.camel.context>
<javax.servlet.api.version>4.0.1</javax.servlet.api.version>
<jkube-maven-plugin-version>1.14.0</jkube-maven-plugin-version>
<kafka-avro-serializer-version>5.2.2</kafka-avro-serializer-version>
<reactor-version>3.5.11</reactor-version>
<testcontainers-version>1.19.8</testcontainers-version>
<hapi-structures-v24-version>2.3</hapi-structures-v24-version>
<narayana-spring-boot-version>2.6.7</narayana-spring-boot-version>
<artemis-jakarta-version>2.31.0</artemis-jakarta-version>
<jkube-maven-plugin-version>1.17.0</jkube-maven-plugin-version>
<jkube.generator.from>registry.access.redhat.com/ubi9/openjdk-17:latest</jkube.generator.from>
<kafka-avro-serializer-version>7.1.1</kafka-avro-serializer-version>
<reactor-version>3.7.0</reactor-version>
<testcontainers-version>1.20.4</testcontainers-version>
<hapi-structures-v24-version>2.5.1</hapi-structures-v24-version>
<artemis-jakarta-version>2.38.0</artemis-jakarta-version>
</properties>

<repositories>
Expand Down Expand Up @@ -136,20 +135,6 @@
</pluginRepository>
</pluginRepositories>

<dependencyManagement>
<dependencies>
<!--
CAMEL-13084 Fix the spring-boot examples start up error by overriding servlet API version from camel-parent
We need to clean it up once camel-parent upgrade the servlet api version.
-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax.servlet.api.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
Expand Down
1 change: 0 additions & 1 deletion saga/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jkube.generator.from>registry.access.redhat.com/ubi8/openjdk-17</jkube.generator.from>
</properties>

<modules>
Expand Down
Loading