Skip to content

A KSP annotation processor to automatically generate service files for services annotated with @service

License

Notifications You must be signed in to change notification settings

solo-studios/KSPServiceAnnotation

Repository files navigation

KSP Service Annotation

Build Status Apache 2.0 license Maven Central Pure Kotlin Discord Server

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.

License & Credit

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.

Including

You can include KSP Service Annotation in your project by adding the following:

Gradle Groovy DSL

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'
}

Gradle Kotlin DSL

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")
}

About

A KSP annotation processor to automatically generate service files for services annotated with @service

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages