Is it possible to use some code generated with ΛRR...
# arrow-meta
m
Is it possible to use some code generated with ΛRROW Meta (with
Transform.newSources
) in the same module upon which ΛRROW Meta was applied to generate it? As an example, I'm generating a wrapper class with this transformation
Copy code
classDeclaration(isAnnotatedWith<Cool>()) { c ->
    Transform.newSources(
        """|package ${c.packageName}.cool
           |                       
           |class Cool${c.name}(val value : ${c.fullyQualifiedName})
           |""".trimMargin().file("cool.kt")
    )
}
Can I configure gradle and IDEA to use this class definition in the module where I apply my plugin? The problem that I see is that the content of the kapt folder is made of both new source files and modified source files.
r
yes, you can place source files wherever you want but by default it places them where kapt does