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
When trying to import a generated kotlin sdk into a service, I am getting an error that the generated openapi sdk does not have mandatory providers: 'JavaInfo'
Error:(3, 15) in deps attribute of kt_jvm_library rule //services/path/... : '//openapi:com.company.sdk.service' does not have mandatory providers: 'JavaInfo'.
Effectively, the output of this rule cannot be depended on by any other rule. I have yet to see a project using this package successfully. As far as I can tell, it will get you the output into bazel-bin, but if you actually want to use that from another bazel target, you cannot.
When trying to import a generated kotlin sdk into a service, I am getting an error that the generated openapi sdk
does not have mandatory providers: 'JavaInfo'
I see in the code that I can add a dep for
JavaInfo
: https://github.com/OpenAPITools/openapi-generator-bazel/blob/master/internal/openapi_generator.bzl#L131:L137When I set
deps = ["JavaInfo"]
I get an error that:rule '//openapi:JavaInfo' does not exist.
Any idea how I should apply JavaInfo to deps? My understanding is that
JavaInfo
is a provider not a rule.Just as a note, it seems Kotlin like Scala requires
JavaInfo
: https://docs.aspect.build/bazelbuild/rules_kotlin/v1.5.0-beta-2/kotlin.html#kt_jvm_libraryThe text was updated successfully, but these errors were encountered: