Created 09-11-2024 08:25 AM
Unfortunately, Cloudera seems to only actively maintain a maven plugin for packaging the code into a nar file. My company has a standard to do things in gradle and do not want me changing to a maven project. Previously, we used a project compatible with gradle 6. Now we are upgrading to Java 17 and Gradle 8.8 and what we had previously used is now incompatible so I was wondering if anyone has had luck with this issue?
Created 09-11-2024 12:34 PM
@mjmoore Welcome to the Cloudera Community!
To help you get the best possible solution, I have tagged our NiFi experts @steven-matison @MattWho who may be able to assist you further.
Please keep us updated on your post, and we hope you find a satisfactory solution to your query.
Regards,
Diana Torres,Created 09-11-2024 09:54 PM
Hi @mjmoore ,
Im not gradle expert but it seems like it has plugins for nifi:
https://plugins.gradle.org/search?term=nifi
will that work?
Created 09-12-2024 05:43 AM
If you are only building a custom NAR, you should be able to use one of the Gradle plugins from the list that was posted here. Building all of NiFi as a Gradle project may not be quite as feasible, but I believe a 'gradle init' can (almost?) convert the project into a Gradle build. You may also want to look at Gradle plugins that are similar to the Maven plugins we use for the project such as identifying vulnerabilites in dependencies, checkstyle (if you have such a requirement), etc.
Created 09-13-2024 05:28 AM
Yes its only for custom processors so looking at the two libraries linked one was abandoned in 2020 and it looked like there would compatibility issues with gradle 8. I will have to check the other one and get back to you.
Created 10-04-2024 04:54 AM
Have you been able to resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.