Nathan Bedell
09/24/2021, 12:00 AMgenerate-sources
for the actual compiler plugin, interfaces
for the interfaces generated by the plugin, and the annotation used, and testmod
to test out the plugin. To check if the plugin is loaded while building testmod
, I currently have a single error message that should get called whenever running the plugin in generate-sources
-- yet testmod
builds successfully without showing this compiler error, so it seems like my plugin isn't getting loaded in testmod
-- but I can't see why (I was able to get this working before, but unfortunately that was before I checked anything into git).
Could someone take a look at my project and see what I'm missing? https://github.com/Sintrastes/buildable-ktraulraja
09/24/2021, 7:54 AMNathan Bedell
09/24/2021, 12:04 PM./gradlew :testmod:build
completes successfully with no errors. It doesn't look like the plugin is loaded. I'm not sure why I kept my base build.gradle empty, but all of the submodules do seem to be building with that.
I'll see if I can more closely mirror the structure of the example project (exact versions, etc...) and see if I still run into issues.Nathan Bedell
09/24/2021, 11:04 PMapply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
But I noticed in the example project, the use:
plugins {
id "org.jetbrains.kotlin.jvm"
}
I'm not sure if that was the change that fixed my project or not, but with that, and a few other changes, everything's working now.