Karolis
01/06/2020, 8:54 AMpackage-info.java
file near my Kotlin code. It works while I run my app from IDE, but if I package app as a fat jar (gradle bootJar
), it stops working. The only fix I came across is to place the package-info in src/java
instead of src/kotlin
. Is there a way to instruct gradle to include package-info.java to resulting spring boot jar?Mike
01/06/2020, 2:04 PMKarolis
01/06/2020, 2:32 PMMike
01/06/2020, 3:16 PM@file:MyAnnotation?
https://kotlinlang.org/docs/reference/annotations.html#annotation-use-site-targets
Or does the annotation need to be in a different place?Karolis
01/06/2020, 4:49 PMAnnotatedElementUtils.findMergedAnnotation(method.declaringClass.`package`, MyAnnotation::class.java)
I guess I'll resort to having package-info.java in java
directory