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

Register azure-identity IdentityClientBase for runtime initialization #4373

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.camel.quarkus.component.azure.storage.blob.deployment;

import com.azure.identity.implementation.IdentityClient;
import com.azure.identity.implementation.IdentityClientBase;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
Expand Down Expand Up @@ -80,5 +81,7 @@ void runtimeInitializedClasses(BuildProducer<RuntimeInitializedClassBuildItem> r
new RuntimeInitializedClassBuildItem("com.microsoft.aad.msal4jextensions.persistence.linux.ISecurityLibrary"));
runtimeInitializedClass.produce(
new RuntimeInitializedClassBuildItem("com.microsoft.aad.msal4jextensions.persistence.mac.ISecurityLibrary"));
// TODO: Remove this - https://github.com/apache/camel-quarkus/issues/4356
runtimeInitializedClass.produce(new RuntimeInitializedClassBuildItem(IdentityClientBase.class.getName()));
}
}
3 changes: 1 addition & 2 deletions integration-test-groups/azure/azure-eventhubs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
</dependencies>

<profiles>
<!-- TODO https://github.com/apache/camel-quarkus/issues/4356
<profile>
<id>native</id>
<activation>
Expand All @@ -98,7 +97,7 @@
</plugin>
</plugins>
</build>
</profile>-->
</profile>
<profile>
<id>virtualDependencies</id>
<activation>
Expand Down
3 changes: 1 addition & 2 deletions integration-test-groups/azure/azure-storage-blob/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
</dependencies>

<profiles>
<!-- TODO https://github.com/apache/camel-quarkus/issues/4356
<profile>
<id>native</id>
<activation>
Expand All @@ -112,7 +111,7 @@
</plugin>
</plugins>
</build>
</profile>-->
</profile>
<profile>
<id>virtualDependencies</id>
<activation>
Expand Down