Skip to content

Library that is using Kotlin Symbol Processing (KSP) for processing Extension annotation used by PF4J framework

License

Notifications You must be signed in to change notification settings

better-care/pf4j-kotlin-symbol-processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pf4j-kotlin-symbol-processing

Library that is using Kotlin Symbol Processing (KSP) for processing Extension annotation used by PF4J framework.

Licence

License

Release

Release Artifacts

Usage with Maven

Define the PF4J dependency in your pom.xml:

<dependency>
    <groupId>org.pf4j</groupId>
    <artifactId>pf4j</artifactId>
    <version>3.13.0</version>
</dependency>

Define the kotlin-maven-plugin in your pom.xml:

<plugin>
    <groupId>org.jetbrains.kotlin</groupId>
    <artifactId>kotlin-maven-plugin</artifactId>
    <version>2.1.10</version>
    <executions>
        <execution>
            <id>compile</id>
            <phase>compile</phase>
            <goals>
                <goal>compile</goal>
            </goals>
        </execution>
        <execution>
            <id>test-compile</id>
            <phase>test-compile</phase>
            <goals>
                <goal>test-compile</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <jvmTarget>17</jvmTarget>
        <compilerPlugins>
            <compilerPlugin>ksp</compilerPlugin>
        </compilerPlugins>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>com.dyescape</groupId>
            <artifactId>kotlin-maven-symbol-processing</artifactId>
            <version>1.7</version>
        </dependency>
        <dependency>
            <artifactId>pf4j-kotlin-symbol-processing</artifactId>
            <groupId>care.better.pf4j</groupId>
            <version>2.1.10-1.0.2</version>
        </dependency>
    </dependencies>
</plugin>

Usage with Gradle

Define Gradle plugin portal to provide easy access to both core and community plugins:

pluginManagement {
    repositories {
        gradlePluginPortal()
    }
}

Apply the com.google.devtools.ksp plugin with the specified version and pf4j-kotlin-symbol-processor to the list of dependencies:

plugins {
    id("com.google.devtools.ksp") version "2.1.10-1.0.29"
}

dependencies {
    implementation("org.pf4j:pf4j:3.13.0")
    ksp("care.better.pf4j:pf4j-kotlin-symbol-processing:2.1.10-1.0.2")
}

About

Library that is using Kotlin Symbol Processing (KSP) for processing Extension annotation used by PF4J framework

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages