Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/ui/ui-docs/ui-docs-d…
Browse files Browse the repository at this point in the history
…ependencies-bf150ba3ff
  • Loading branch information
carlesarnal authored Jan 15, 2025
2 parents 5b7b78f + 3d77c00 commit 5258ab8
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 406 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
docker images
- name: Slack Notification (Always)
if: always()
if: github.event_name == 'push' && always()
run: |
MESSAGE="Registry 'build-verify' job completed with status: ${{ job.status }}"
REPO="${{ github.repository }}"
Expand All @@ -99,7 +99,7 @@ jobs:
curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
- name: Slack Notification (Error)
if: failure()
if: github.event_name == 'push' && failure()
run: |
MESSAGE="Registry 'build-verify' job FAILED"
REPO="${{ github.repository }}"
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
run: docker buildx build --push -f ./Dockerfile -t quay.io/apicurio/apicurio-registry-ui:latest-snapshot -t docker.io/apicurio/apicurio-registry-ui:latest-snapshot --platform linux/amd64,linux/arm64,linux/s390x,linux/ppc64le .

- name: Slack Notification (Always)
if: always()
if: github.event_name == 'push' && always()
run: |
MESSAGE="Registry 'build-verify-ui' job completed with status: ${{ job.status }}"
REPO="${{ github.repository }}"
Expand All @@ -190,7 +190,7 @@ jobs:
curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
- name: Slack Notification (Error)
if: failure()
if: github.event_name == 'push' && failure()
run: |
MESSAGE="Registry 'build-verify-ui' job FAILED"
REPO="${{ github.repository }}"
Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:
run: docker images

- name: Slack Notification (Always)
if: always()
if: github.event_name == 'push' && always()
run: |
MESSAGE="Registry 'build-native-images' job completed with status: ${{ job.status }}"
REPO="${{ github.repository }}"
Expand All @@ -296,7 +296,7 @@ jobs:
curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
- name: Slack Notification (Error)
if: failure()
if: github.event_name == 'push' && failure()
run: |
MESSAGE="Registry 'build-native-images' job FAILED"
REPO="${{ github.repository }}"
Expand Down Expand Up @@ -342,7 +342,7 @@ jobs:
run: make test

- name: Slack Notification (Always)
if: always()
if: github.event_name == 'push' && always()
run: |
MESSAGE="Registry 'build-verify-python-sdk' job completed with status: ${{ job.status }}"
REPO="${{ github.repository }}"
Expand All @@ -351,7 +351,7 @@ jobs:
curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
- name: Slack Notification (Error)
if: failure()
if: github.event_name == 'push' && failure()
run: |
MESSAGE="Registry 'build-verify-python-sdk' job FAILED"
REPO="${{ github.repository }}"
Expand Down Expand Up @@ -387,7 +387,7 @@ jobs:
run: make test

- name: Slack Notification (Always)
if: always()
if: github.event_name == 'push' && always()
run: |
MESSAGE="Registry 'build-verify-go-sdk' job completed with status: ${{ job.status }}"
REPO="${{ github.repository }}"
Expand All @@ -396,7 +396,7 @@ jobs:
curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }}
- name: Slack Notification (Error)
if: failure()
if: github.event_name == 'push' && failure()
run: |
MESSAGE="Registry 'build-verify-go-sdk' job FAILED"
REPO="${{ github.repository }}"
Expand Down
6 changes: 2 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
<module>utils/converter</module>
<module>utils/kafka</module>
<module>utils/maven-plugin</module>
<module>utils/tools</module>
<module>utils/importexport</module>
<module>utils/exportConfluent</module>
<module>utils/protobuf-schema-utilities</module>
Expand Down Expand Up @@ -166,7 +165,7 @@
<okhttp.version>4.12.0</okhttp.version>
<okio-jvm.version>3.9.1</okio-jvm.version>
<okio.version>3.9.1</okio.version>
<okio-fake-file-system.version>3.9.1</okio-fake-file-system.version>
<okio-fake-file-system.version>3.10.2</okio-fake-file-system.version>
<icu4j.version>76.1</icu4j.version>
<protobuf.version>3.25.5</protobuf.version>
<xmlsec.version>4.0.3</xmlsec.version>
Expand Down Expand Up @@ -213,7 +212,6 @@
<!-- Dependency versions -->
<lombok.version>1.18.36</lombok.version>
<commons-codec.version>1.17.1</commons-codec.version>
<jboss-slf4j.version>1.2.1.Final</jboss-slf4j.version>
<apicurio-common-rest-client.version>0.1.18.Final</apicurio-common-rest-client.version>
<kafka-clients.version>3.6.0</kafka-clients.version>
<debezium.version>2.6.2.Final</debezium.version>
Expand Down Expand Up @@ -269,7 +267,7 @@

<!-- Kiota -->
<kiota.libs.version>1.8.2</kiota.libs.version>
<kiota.community.version>0.0.19</kiota.community.version>
<kiota.community.version>0.0.20</kiota.community.version>

<kiota.version>1.21.0</kiota.version>
<kiota.timeout>60</kiota.timeout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,20 @@ public abstract class AbstractSchemaResolver<S, T> implements SchemaResolver<S,
protected String explicitArtifactId;
protected String explicitArtifactVersion;

protected Vertx vertx;
protected static Vertx vertx;
protected Vertx internalReference;
protected boolean resolveDereferenced;

@Override
public void configure(Map<String, ?> configs, SchemaParser<S, T> schemaParser) {
this.schemaParser = schemaParser;

if (this.vertx == null) {
this.vertx = Vertx.vertx();
if (vertx != null) {
internalReference = vertx;
}

if (internalReference == null) {
internalReference = Vertx.vertx();
}

this.config = new SchemaResolverConfig(configs);
Expand All @@ -72,7 +77,7 @@ public void configure(Map<String, ?> configs, SchemaParser<S, T> schemaParser) {
if (username != null) {
client = configureClientWithBasicAuth(config, baseUrl, username);
} else {
var adapter = new VertXRequestAdapter(this.vertx);
var adapter = new VertXRequestAdapter(internalReference);
adapter.setBaseUrl(baseUrl);
client = new RegistryClient(adapter);
}
Expand Down Expand Up @@ -275,8 +280,12 @@ public void reset() {
*/
@Override
public void close() throws IOException {
if (this.vertx != null) {
this.vertx.close();
if (internalReference != null) {
if (vertx == null) {
internalReference.close();
} else {
vertx = null;
}
}
}

Expand Down Expand Up @@ -304,7 +313,7 @@ private RequestAdapter configureAuthWithUrl(SchemaResolverConfig config, String
final String clientScope = config.getAuthClientScope();

return new VertXRequestAdapter(
buildOIDCWebClient(this.vertx, tokenEndpoint, clientId, clientSecret, clientScope));
buildOIDCWebClient(internalReference, tokenEndpoint, clientId, clientSecret, clientScope));
}

private RegistryClient configureClientWithBasicAuth(SchemaResolverConfig config, String registryUrl,
Expand All @@ -317,7 +326,8 @@ private RegistryClient configureClientWithBasicAuth(SchemaResolverConfig config,
"Missing registry auth password, set " + SchemaResolverConfig.AUTH_PASSWORD);
}

var adapter = new VertXRequestAdapter(buildSimpleAuthWebClient(this.vertx, username, password));
var adapter = new VertXRequestAdapter(
buildSimpleAuthWebClient(internalReference, username, password));

adapter.setBaseUrl(registryUrl);
return new RegistryClient(adapter);
Expand All @@ -340,4 +350,8 @@ protected void loadFromSearchedVersion(SearchedVersion version,
resultBuilder.artifactId(version.getArtifactId());
resultBuilder.version(String.valueOf(version.getVersion()));
}

public static void setVertx(Vertx vertx) {
AbstractSchemaResolver.vertx = vertx;
}
}
6 changes: 0 additions & 6 deletions schema-util/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>org.jboss.slf4j</groupId>
<artifactId>slf4j-jboss-logging</artifactId>
<version>${jboss-slf4j.version}</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-json-org</artifactId>
Expand Down
6 changes: 0 additions & 6 deletions serdes/generic/serde-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>org.jboss.slf4j</groupId>
<artifactId>slf4j-jboss-logging</artifactId>
<version>${jboss-slf4j.version}</version>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down
6 changes: 0 additions & 6 deletions serdes/kafka/serde-kafka-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>org.jboss.slf4j</groupId>
<artifactId>slf4j-jboss-logging</artifactId>
<version>${jboss-slf4j.version}</version>
</dependency>

<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
Expand Down
6 changes: 1 addition & 5 deletions utils/kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.slf4j</groupId>
<artifactId>slf4j-jboss-logging</artifactId>
<version>${jboss-slf4j.version}</version>
</dependency>

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-test-common</artifactId>
Expand Down
49 changes: 0 additions & 49 deletions utils/tools/pom.xml

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5258ab8

Please sign in to comment.