Kotlin
PF4J can be used in Kotlin project as well. One has to use the Kotlin annotation processing tool kapt for the plugin project written in Kotlin.
The demo_gradle
project contains one plugin project plugin3 written in Kotlin for demonstration.
If you are interested in how to use PF4J with Gradle Kotlin DSL please take a look on pf4j-kotlin-demo.
Main points:
- all components are written in Kotlin: app, api, plugins
- using
gradle.kts
build scripts for the whole project - basically an enhanced copy of
demo_gradle