How use KSP in an Intellij native build JPS ?
Answered
Hi all,
I develop a plugin, started from the template based on gradle.
We are using KSP plugin and arrow-optics, it's working well with native gradle build and in Intellij when using gradle build from Intellij.
Our build is like this (build.gradle.kts)
...
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.8.20"
...
id("com.google.devtools.ksp") version "1.8.20-1.0.11"
}
...
dependencies {
implementation(platform("io.arrow-kt:arrow-stack:$arrowVersion"))
implementation("io.arrow-kt:arrow-core")
implementation("io.arrow-kt:arrow-optics")
implementation("org.jdom:jdom2:2.0.6.1")
ksp("io.arrow-kt:arrow-optics-ksp-plugin:$arrowVersion")
...
}
...
We are now trying to use it in Intellij Community project based on JPS / Intellij Native build.
I don't find a way to configure the devtools.ksp plugin in my JPS build.
How can I do it ?
Another solution is to have in the Intellij Community IDE project a way to include a plugin built with an external system.
Is there a way to add a dependency to a plugin distribution ZIP or other artifacts produce by the gradle build ?
Regards,
Philippe
Please sign in to leave a comment.
If I understand correctly, you'll need to provide a JPS plugin for that https://plugins.jetbrains.com/docs/intellij/external-builder-api.html#registering-a-plugin-for-external-builder