Describe the feature
Add reachability metadata for service sso, namely for the constructor of SsoProfileCredentialsProviderFactory.
Use Case
GraalVM native image requires reflection hints for code that is only used by reflection.
Proposed Solution
Add a file reflect-config.json under src/main/resources/META-INF/native-image/software.amazon.awssdk/sso with:
[
{
"name": "software.amazon.awssdk.services.sso.auth.SsoProfileCredentialsProviderFactory",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
}
]
Other Information
Native hints can be provided by the application (e.g., for spring applications, via @ImportRuntimeHints), but it's mostly a try-and-error process. Libraries providing metadata simplify the operation of building a native image considerably.
Other aws services already provide metadata, see ssooidc.
Acknowledgements
AWS Java SDK version used
2.29.52
JDK version used
21.0.5
Operating System and version
MacOS 15.2
Describe the feature
Add reachability metadata for service
sso, namely for the constructor ofSsoProfileCredentialsProviderFactory.Use Case
GraalVM native image requires reflection hints for code that is only used by reflection.
Proposed Solution
Add a file
reflect-config.jsonundersrc/main/resources/META-INF/native-image/software.amazon.awssdk/ssowith:[ { "name": "software.amazon.awssdk.services.sso.auth.SsoProfileCredentialsProviderFactory", "methods": [ { "name": "<init>", "parameterTypes": [] } ] } ]Other Information
Native hints can be provided by the application (e.g., for spring applications, via
@ImportRuntimeHints), but it's mostly a try-and-error process. Libraries providing metadata simplify the operation of building a native image considerably.Other aws services already provide metadata, see ssooidc.
Acknowledgements
AWS Java SDK version used
2.29.52
JDK version used
21.0.5
Operating System and version
MacOS 15.2