Я следую за разделом быстрого запуска из документации, но когда дело доходит до создания пользовательского клиента, происходит сбой со следующей ошибкой:
Testing started at 23:47 ...
> Task :cleanTest UP-TO-DATE
> Task :kaptGenerateStubsKotlin
> Task :kaptKotlin
> Task :compileKotlin
> Task :compileJava NO-SOURCE
> Task :processResources
> Task :classes
> Task :kaptGenerateStubsTestKotlin
> Task :kaptTestKotlin FAILED
e: /Users/marcin/hello-world2/build/tmp/kapt3/stubs/test/hello/world2/HelloClient.java:7: error: duplicate class: hello.world2.HelloClient
public abstract interface HelloClient {
^
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':kaptTestKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
7 actionable tasks: 6 executed, 1 up-to-date
и вот клиент
package hello.world2
import io.micronaut.http.annotation.Get
import io.micronaut.http.client.annotation.Client
import io.reactivex.Single
@Client("/hello")
interface HelloClient {
@Get
fun hello(): Single<String>
}