Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Has anyone gotten Custom NiFi Processor Projects built using Gradle?

avatar
New Contributor

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?

4 REPLIES 4

avatar
Community Manager

@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,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Super Guru

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?

avatar
Master Guru

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.

avatar
New Contributor

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.