Coder Social home page Coder Social logo

solo-studios / kspserviceannotation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 123 KB

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

License: Apache License 2.0

Kotlin 100.00%
java java-services kotlin services

kspserviceannotation's Introduction

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

kspserviceannotation's People

Contributors

solonovamax avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.