Kotlin has a major drawback. It doesn't support annotations on packages! So currently it's not possible to generate the service locator in kotlin code. A workaround will be to allow usage of SpiServiceLocator Annotation on Types.