-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Update to Apicurio Registry 2.1.1.Final and use Vert.x HTTP client #20495
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,16 @@ | |
<dependency> | ||
<groupId>io.apicurio</groupId> | ||
<artifactId>apicurio-registry-serdes-avro-serde</artifactId> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>io.apicurio</groupId> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. |
||
<artifactId>apicurio-common-rest-client-jdk</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.apicurio</groupId> | ||
<artifactId>apicurio-common-rest-client-vertx</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
|
@@ -27,10 +37,9 @@ | |
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-avro</artifactId> | ||
</dependency> | ||
<!-- Apicurio Registry libraries use Keycloak client, which requires Apache HTTP Client --> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-apache-httpclient</artifactId> | ||
<artifactId>quarkus-vertx</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.quarkus.apicurio.registry.avro; | ||
|
||
import io.apicurio.registry.rest.client.RegistryClientFactory; | ||
import io.apicurio.rest.client.VertxHttpClientProvider; | ||
import io.quarkus.runtime.RuntimeValue; | ||
import io.quarkus.runtime.annotations.Recorder; | ||
import io.vertx.core.Vertx; | ||
|
||
@Recorder | ||
public class ApicurioRegistryClient { | ||
public void setup(RuntimeValue<Vertx> vertx) { | ||
RegistryClientFactory.setProvider(new VertxHttpClientProvider(vertx.getValue())); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
--> | ||
|
||
<properties> | ||
<apicurio.version>2.0.1.Final</apicurio.version> | ||
<apicurio.version>2.1.1.Final</apicurio.version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't |
||
</properties> | ||
|
||
<dependencies> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ public static String getApicurioSchemaRegistryUrl() { | |
@Override | ||
public Map<String, String> start() { | ||
kafka.start(); | ||
registry = new GenericContainer<>("apicurio/apicurio-registry-mem:2.0.1.Final") | ||
registry = new GenericContainer<>("apicurio/apicurio-registry-mem:2.1.1.Final") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This version should also be read from a property (added to the surefire plugin config). |
||
.withExposedPorts(8080) | ||
.withEnv("QUARKUS_PROFILE", "prod"); | ||
registry.start(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
package io.quarkus.it.kafka; | ||
|
||
import org.junit.jupiter.api.BeforeAll; | ||
|
||
import io.apicurio.registry.rest.client.RegistryClientFactory; | ||
import io.apicurio.rest.client.VertxHttpClientProvider; | ||
import io.quarkus.test.common.QuarkusTestResource; | ||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.vertx.core.Vertx; | ||
|
||
@QuarkusIntegrationTest | ||
@QuarkusTestResource(KafkaAndSchemaRegistryTestResource.class) | ||
public class KafkaAvroIT extends KafkaAvroTest { | ||
@BeforeAll | ||
public static void setUp() { | ||
// this is for the test JVM, which also uses Kafka client, which in turn also interacts with the registry | ||
RegistryClientFactory.setProvider(new VertxHttpClientProvider(Vertx.vertx())); | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, nice comment.