A brief follow-up to this thread, after another month into my project: I have found that although Gradle will work fine as a build tool for OSGi, it does seem that Maven is better supported for OSGi development in Eclipse. For example, the Eclipse bndtools plugins support live code deployment if you're using Maven, but not Gradle. I have also seen a post describing doing live code deployment from IDEA that requires Maven. So, I conclude that Maven is definitely preferred over Gradle when it comes to OSGi IDE tooling.
Also, although there is a Gradle plugin for generating kar archives for Karaf, I have encountered issues using it with current versions of Gradle. Finally, many OSGi examples I find online seem to be using Maven rather than Gradle as the build tool. These issues have not caused me to abandon Gradle, because I prefer it to Maven, and I am grateful that the bnd project continues to have great support for Gradle. However, overall, I am left with the impression that there is better support for Maven than for Gradle in the broader OSGi ecosystem. Stephen On Tue, Jun 25, 2019 at 10:11 AM Stephen Schaub <ssch...@gmail.com> wrote: > Thanks to all for the helpful responses. I was concerned about using > Gradle as a build tool because so many OSGi resources I was finding seemed > to be using Maven, and the change of enRoute docs from Gradle to Maven > seemed to communicate a move away from Gradle as a "preferred" build tool. > But given that Maven still seems to be the dominant build tool in the Java > world, I can understand the rationale for transitioning enRoute from Gradle > to Maven. Also, I can understand that maintaining both Maven and Gradle > versions of enRoute would be a burden. > > Stephen > > On Mon, Jun 24, 2019 at 4:28 PM Stephen Schaub <ssch...@gmail.com> wrote: > >> I'm new to OSGi and am starting a project. I found the enRoute material >> and noticed that the enRoute tutorials apparently at one time utilized >> Gradle as the build tool, but are now using Maven. >> >> I'm more familiar with Gradle and have worked out how to use Gradle to do >> what I need for the project, but I was wondering 1) why the switch from >> Gradle to Maven for enRoute and 2) is Maven the preferred build tool for >> OSGi going forward? Is there a reason I should consider switching to Maven? >> >> I've poked through the mailing list archives trying to find answers to >> these questions but can't seem to find a record of any discussions about >> this, so am hoping someone can shed some light for me. >> >> -- >> Stephen Schaub >> > > > -- Stephen Schaub
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev