melatonina
05/04/2020, 9:30 AMTransform.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
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.raulraja
05/05/2020, 10:58 AM