tlinkowski / basic-annotations

A couple of basic Java annotations that cover null safety (via JSR 305), collection mutability (via Kotlin), and a few other concepts.
http://annotation.tlinkowski.pl/
Apache License 2.0
9 stars 2 forks source link

Compilation warning about Kotlin's `AnnotationTarget` enum #15

Open tlinkowski opened 5 years ago

tlinkowski commented 5 years ago

The following warning occurs when compiling with basic-annotations in compileOnly scope:

warning: unknown enum constant AnnotationTarget.ANNOTATION_CLASS
  reason: class file for kotlin.annotation.AnnotationTarget not found

This happens e.g. when compiling sample-java-api subproject: https://travis-ci.com/tlinkowski/basic-annotations/builds/123617322#L278-L279

Caused by KT-33141.

Zeus64 commented 2 years ago

I have the same problem