Hey all. It's been awhile since I've been able to ...
# arrow-meta
n
Hey all. It's been awhile since I've been able to work on my "buildable" project using arrow meta -- but I recently created a project on github for it, and started working on it again. For some reason, I can no longer get my project, which is based off of the arrow-meta-examples/generate-sources example, to work. Right now I have three modules:
generate-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-kt
r
Hi @Nathan Bedell, do you have a stacktrace or error message you could share? Something odd I see in you project just by looking at it is that the build file is empty https://github.com/Sintrastes/buildable-kt/blob/main/build.gradle
n
@raulraja Unfortunately no.
./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.
Alright, I figured out how to make it working. I think the issue may have been that I was using the wrong gradle plugin. Previously I was using:
Copy code
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
But I noticed in the example project, the use:
Copy code
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.
👍 1