renatoathaydes / osgi-run

Osgi-Run - A Gradle plugin to make the development of modular applications using OSGi completely painless
Apache License 2.0
54 stars 13 forks source link

OSGi DS Annotations #61

Open realPyR3X opened 7 years ago

realPyR3X commented 7 years ago

Firstly, I'm loving this plug-in, thank you! I'm having some trouble figuring out how to properly use DS Annotations. Felix SCR annotations are now deprecated in favor of the actual OSGi ones. It would be great if we could annotate our classes and it automatically be picked up by osgi-run ds plug-in, as opposed to declaring them in the build.gradle or elsewhere. Are you aware of which dependencies are needed (without the osgi-run ds plug-in) to properly do DS annotations?

-Charlie

renatoathaydes commented 7 years ago

Hi @realPyR3X. I agree it would be nice if the osgi-ds plugin could do that!

But for now, you can use the org.dm.bundle plugin to do that.

Check the osgi-run Tutorial which has an example that shows how to do that.