Hi You can give a try to not use gradle daemon and clear gradle build cache before: ./gradlew --no-daemon --no-build-cache ...
The issue is not occurring during our CI (Github Actions), so a clean environment and not using gradle daemon might sort this issue out till we figure out why the avro schema generation cause some issues during rebuild. Regards, Adam > On 2025. May 6., at 10:31, Bhaskar Tiwari <bhas...@strideone.in> wrote: > > Already did that. > Issue is Intermittent sometimes it works but sometimes build fails. > > From: Jose Alberto Hernandez <josealbert...@gmail.com> > Sent: Tuesday, May 6, 2025 1:58 PM > To: dev@fineract.apache.org > Cc: dev@fineract.apache.org > Subject: Re: Intermittent Build Failure Post Migration to Fineract 1.9 from > 1.4 > > Please try the clean and build gradlew options separately > > I mean first > gradlew clean > > then the rest for building > > > Sent from my iPhone > > > On 6 May 2025, at 3:04 a.m., Bhaskar Tiwari <bhas...@strideone.in > <mailto:bhas...@strideone.in>> wrote: > > > We’re using OpenJDK 17.0.14 for the build process. > > On local development machines: Windows with OpenJDK 17.0.14 > On our deployment/build servers: Linux with OpenJDK 17.0.14 > > Let me know if you need any additional environment details. > > From: VICTOR MANUEL ROMERO RODRIGUEZ <victor.rom...@fintecheando.mx > <mailto:victor.rom...@fintecheando.mx>> > Sent: Tuesday, May 6, 2025 1:23 PM > To: dev@fineract.apache.org <mailto:dev@fineract.apache.org> > Subject: Re: Intermittent Build Failure Post Migration to Fineract 1.9 from > 1.4 > > Which is the Operating System and the Java version used for the building > process? > > El El mar, 6 de may de 2025 a la(s) 12:02 a.m., Bhaskar Tiwari > <bhas...@strideone.in <mailto:bhas...@strideone.in>> escribió: > Hi Team, > > We recently migrated our application from Fineract 1.4 to Fineract 1.9. After > addressing all conflicts and successfully executing the migration scripts, > the application is running smoothly without any functional issues. > > However, we have encountered an intermittent issue during the build process. > Specifically, when running the following build command: > > ./gradlew clean build -x rat -x test -x compileTestJava -x checkstyleTest -x > checkstyleMain -x spotbugsTest -x spotbugsMain -x spotlessGroovyGradleCheck > -x spotlessJavaCheck -x cucumber -x spotlessMiscCheck -x modernizer > > The build sometimes succeeds and sometimes fails, with the failures typically > related to Fineract Avro dependencies. We've tried multiple troubleshooting > steps, but the issue persists and appears to occur at random or in alternate > attempts. > > I'm attaching the relevant error logs for reference. Please let us know if > there are any known issues or additional steps we should consider. > > Best regards, > > Bhaskar Tiwari > > > "Print this mail only if absolutely necessary. Save Paper. Save Trees." > Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree > Private Limited) may contain Confidential/Restricted/Internal information and > should only be viewed by the intended recipients. Under no circumstances may > any such information be disclosed, copied, used or distributed to any > unauthorized persons or entities without the written consent of Strideone. If > you are not the intended recipient, any review, retransmission, dissemination > or reliance on the content of these materials is strictly prohibited and may > be the subject of legal action. If you received this email in error, please > notify the sender and delete the message immediately.” > > > > "Print this mail only if absolutely necessary. Save Paper. Save Trees." > Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree > Private Limited) may contain Confidential/Restricted/Internal information and > should only be viewed by the intended recipients. Under no circumstances may > any such information be disclosed, copied, used or distributed to any > unauthorized persons or entities without the written consent of Strideone. If > you are not the intended recipient, any review, retransmission, dissemination > or reliance on the content of these materials is strictly prohibited and may > be the subject of legal action. If you received this email in error, please > notify the sender and delete the message immediately.” > > > > "Print this mail only if absolutely necessary. Save Paper. Save Trees." > Disclaimer: “This electronic mail message sent from StrideOne (Stride Fintree > Private Limited) may contain Confidential/Restricted/Internal information and > should only be viewed by the intended recipients. Under no circumstances may > any such information be disclosed, copied, used or distributed to any > unauthorized persons or entities without the written consent of Strideone. If > you are not the intended recipient, any review, retransmission, dissemination > or reliance on the content of these materials is strictly prohibited and may > be the subject of legal action. If you received this email in error, please > notify the sender and delete the message immediately.” >