Flamingock in kotlin project #898
-
|
Hi, I'm having some issues enabling flamingock in a kotlin spring boot project with maven as a dependency management. I can offer more details on how i configured it, if the answer is yes. Also, didn't had any issues with a java spring boot maven project. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hi @elvislicsari , We haven’t tested the Kotlin + Maven combination specifically yet. That said, we use Flamingock Community internally in our cloud services to manage the evolution of external systems, and it works smoothly, so in principle it should work. Could you please share your configuration and the error details? We’ll try to reproduce it and investigate from there. Regards |
Beta Was this translation helpful? Give feedback.
-
|
Hi Antonio, Thanks a lot for the help. I'm using flamingock 1.2.0 dependencies in a kotlin spring boot project: The flamingock processor is taken into account during the mvn clean install. Can see in the logs something like: I'm putting the @EnableFlamingock annotation on the App kotlin class (annotated with Can confirm that the my.package is correct and the The metadata.json file is located in META-INF/flamingock/metadata.json and contains: The issue is that at runtime, flamingock is running, but the stages and changes are not picked-up. These are the logs: I'm also using intellij, not sure if that really matters. Thanks again, |
Beta Was this translation helpful? Give feedback.
-
|
Hi @elvislicsari , Thanks again for the detailed information. We have been able to validate the There is one important detail in your report that looks inconsistent to us. You mentioned that you are using Flamingock "configFile": ""whereas in Flamingock "pipelineFile": ""That makes us suspect that the In other words, the issue may not be the This would also fit with the behaviour you described: the processor detects stages and changes during compilation, but at runtime Flamingock starts with Could you please double-check whether there is any dependency version mismatch in your project, or whether the Regards |
Beta Was this translation helpful? Give feedback.
Hi @elvislicsari ,
Thanks again for the detailed information.
We have been able to validate the
Spring Boot + Maven + Kotlincombination successfully on our side, so at this point it does not look like a general incompatibility with that stack. The problem seems more likely to be related to compilation or packaging in the specific project setup.There is one important detail in your report that looks inconsistent to us.
You mentioned that you are using Flamingock
1.2.0, but themetadata.jsonyou shared does not seem to match the format we would expect from that version. In particular, the file you posted contains:whereas in Flamingock
1.2.0the generated metadata should …