This library contains a KSP annotation processor and an @Service
annotation.
When a service is annotated with @Service
, it will generate the appropriate files in META-INF/services/
.
This is inspired by Google's AutoService.
This code is licensed under the Apache 2.0 License.
Credit for the implementation of this goes entirely to ZacSweers/auto-service-ksp, as I took a lot of code from that repository.
You can include KSP Service Annotation in your project by adding the following:
plugins {
id 'com.google.devtools.ksp' version '1.6.10-1.0.2'
}
dependencies {
compileOnly 'ca.solo-studios:ksp-service-annotation:1.0.1'
ksp 'ca.solo-studios:ksp-service-annotation:1.0.1'
}
plugins {
id("com.google.devtools.ksp") version "1.6.10-1.0.2"
}
dependencies {
compileOnly("ca.solo-studios:ksp-service-annotation:1.0.1")
ksp("ca.solo-studios:ksp-service-annotation:1.0.1")
}