Open ZorinAnton opened 8 months ago
/cc @geoand (kotlin)
It seems that the addition of the java
source set results in Quarkus not including the Kotlin classes it it's index (when launching from the IDE).
@aloubyansky any ideas of how to address it?
Describe the bug
I need to start Quarkus from main function:
This works fine, but if I add a java class (even empty) I get
The supplied 'main-class' value of 'App' does not correspond to either a fully qualified class name or a matching 'name' field of one of the '@QuarkusMain' annotations
It appears to me that Kotlin annotations don't get processed in this case.Expected behavior
Start without errors
Actual behavior
How to Reproduce?
quarkus-kotlin.zip
Output of
uname -a
orver
Microsoft Windows [Version 10.0.22631.3155]
Output of
java -version
java version "17.0.2" 2022-01-18 LTS Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86) Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
Quarkus version or git rev
3.8.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.6
Additional information
If I perform the same task using Java it works, but kotlin annotations are still don't seem to get recognized. Kotlin entities are not visible and I get
jakarta.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type MetaRepoService and qualifiers [@Default]
until I define an entity with Java.