Support Gradle for building NAR

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Support Gradle for building NAR

Franklin George
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


Reply | Threaded
Open this post in threaded view
|

Re: Support Gradle for building NAR

Otto Fowler
Could you create a jira for this new feature?  I tried to see if there was
one already, and I couldn’t find one.


On April 18, 2019 at 13:02:13, Franklin George (
[hidden email]) 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
Reply | Threaded
Open this post in threaded view
|

Re: Support Gradle for building NAR

Matt Burgess-2
In reply to this post by Franklin George
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
<[hidden email]> 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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Support Gradle for building NAR

Kevin Doran-2
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 <[hidden email]> 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
> <[hidden email]> 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
> >
> >