I want to include a dependency in my Kotlin Resource file. But I cant.
I made this tutorial: https://quarkus.io/guides/rest-client-guide But, to start the project, I
This problem results as a combination of how Kotlin handles annotations and the lack of the a @Target on the @RestClient annotation definition.
@Target
@RestClient
To fix your problem, simply use:
@Inject @field: RestClient lateinit internal var countriesService: CountriesService