Something to keep in mind is that the master branch of the nifi-maven plugin has been updated recently to include additional logic for generating and including metadata information in the resulting NAR. This is a stepping stone to adding support for hosting NAR extension bundles in NiFi Registry.
I support providing/maintaining a NAR Gradle plugin for the community. If we do so, it should support the same capabilities as the NAR Maven plugin, including the recent work on master. Thanks, Kevin On Thu, Apr 18, 2019 at 2:49 PM Matt Burgess <[email protected]> wrote: > > Franklin, > > What kind of support do you mean? Maybe an "official" NiFi Gradle > plugin to build NARs, like the NAR MOJO plugin for Maven? What are the > concerns with using the third-party library (I heard it works fine)? I > also wrote my own inline script [1] (rather than a plugin) you could > use in your own build.gradle file(s). IIRC we talked about writing our > own NAR Gradle plugin, but it would involve either restructuring the > current nifi-maven repo (into a top-level nifi-build repo or > something) or adding a nifi-gradle repo. > > Or do you mean adding build.gradle files to the various modules > allowing anyone to immediately build an existing NAR using Gradle > instead of Maven? I imagine that would take some community discussion, > as we'd have to collectively agree we want to maintain two build > systems and their configurations. > > Regards, > Matt > > [1] > https://github.com/mattyb149/nifi-gradle-nar-example/blob/master/nifi-gradle-built-example-nar/build.gradle > > On Thu, Apr 18, 2019 at 1:02 PM Franklin George > <[email protected]> wrote: > > > > Hi, > > Can you please provide the support to build NAR Files using Gradle too? > > Currently, the only solution available is to use a 3rd party Gradle plugin: > > https://github.com/sponiro/gradle-nar-plugin for Packaging custom > > processors into NAR Files. > > > > Regards, > > Franklin George > > > >
