Would I be able to use KSP to generate a text file (maybe json or yaml) that could list the constructor properties of an annotated class? And store that file in, say, src/main/resources? I.E given a class definition
@Schema data class MyClass(val name: String, val desc: String)
Unfortunately I could not compile this project, either from the main or the experimentation branches.
g
glureau
11/27/2023, 8:14 AM
What is the error? I'm using it in production code atm. Are you using Kotlin 1.9 ?
v
v79
11/27/2023, 12:33 PM
Plugin Repositories (could not resolve plugin artifact 'com.glureau.k2d:com.glureau.k2d.gradle.plugin:0.4.1')
. I am using Kotlin 1.9.20.
v79
11/27/2023, 12:36 PM
IntelliJ can't make sense of the gradle-plugin module at all.
g
glureau
11/27/2023, 12:41 PM
Mmmh, because it's setup for a local build sorry about that (I'll change it later). Please comment the line in the sample app, build once, and then you can get back to using the plugin.