dragas
08/24/2017, 1:20 PMe: MockMockClient.kt: (6, 1): Only annotations with SOURCE retention can be repeated on JVM version before 1.8
exception while compiling with gradle, even though I do have specified that I compile to Java 1.8
via sourceCompatibility = 1.8
targetCompatibility = 1.8
and
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
Is there anything else I could do besides refactoring that annotation? As far as I know, as of 1.8
you can specify that your annotation is @Repeatable