You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! No bugs or actions for maintainers in this issue. Just want to create it in order to document how I fixed a build error I had with this library. Hoping this helps somebody else who is searching the project issues for keywords like I was.
The error is:
java.util.ServiceConfigurationError: io.fabric8.kubernetes.api.KubernetesResourceMappingProvider: Provider io.fabric8.kubernetes.internal.InternalResourceMappingProvider not found
I am using Gradle to build my project, and after a bit of turmoil I realized that certain classes from transitive dependencies (like io.fabric8.kubernetes.internal.InternalResourceMappingProvider) were not getting shadowed into my output jar. As it turns out, this is because of the minimize() option I was using with the com.github.johnrengelman.shadow plugin for Gradle.
To fix this issue, I simply excluded kubernetes-client from the shadowJar options in Gradle:
Hi! No bugs or actions for maintainers in this issue. Just want to create it in order to document how I fixed a build error I had with this library. Hoping this helps somebody else who is searching the project issues for keywords like I was.
The error is:
I am using Gradle to build my project, and after a bit of turmoil I realized that certain classes from transitive dependencies (like io.fabric8.kubernetes.internal.InternalResourceMappingProvider) were not getting shadowed into my output jar. As it turns out, this is because of the
minimize()
option I was using with thecom.github.johnrengelman.shadow
plugin for Gradle.To fix this issue, I simply excluded
kubernetes-client
from theshadowJar
options in Gradle:I hope this helps somebody!
The text was updated successfully, but these errors were encountered: