I want to add a plugin <to the plugin registry,> h...
# ktor
j
I want to add a plugin to the plugin registry, however it requires the KSP plugin. Is there any way to add KSP with the proper version number?
Copy code
gradle:
  plugins:
    - id: com.google.devtools.ksp
      version: DEPENDS_ON_KOTLIN_VERSION
b
hey, looks like you'll need a change in the registry for this... looking at KSP, you'd need to introduce some dynamic concatenated version of kotlin and KSP for now, you can just default to this version variable by adding it in
plugins/gradle.properties
as
ksp=2.0.21-1.0.28
then doing this in the manifest:
Copy code
gradle:
  plugins:
    - id: com.google.devtools.ksp
      version: $ksp
I can introduce something later for the dynamic concatenation
j
fantastic, this will be enough for me, thanks 🙂
Hi @Bruce Hamilton, I forgot something the last time I asked this question. Sure, I can add KSP to the plugin list. However, how can I add a KSP instruction? For example, I need to add this to build.gradle.kts:
Copy code
ksp("dev.nesk.akkurate:akkurate-ksp-plugin:0.11.0")
the real issue here is the
ksp
function, I can't express this in the declarative configuration of the registry
b
Oh right, you can just open a PR without it and mention the issue, then I'll introduce the injection site for the registry
j
that's perfect, thank you 🙂