You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Frank Langel <fr...@frankjlangel.com> on 2015/10/12 18:48:24 UTC
Scala support in Apache Felix
Hello,
Does anyone have experience developing OSGI modules in Scala using Felix? Any input would be highly appreciated
Best
Frank
Re: Scala support in Apache Felix
Posted by Frank Langel <fr...@frankjlangel.com>.
Nice thank you
On 10/13/15, 1:50 AM, "development@mobigov.com" <de...@mobigov.com> wrote:
>
>
>I use scala with OSGI. There is a scala tutorial out there that works
>with the akka-osgi bundle.
>http://doc.akka.io/docs/akka/snapshot/additional/osgi.html I use the
>maven-bundle-plugin to build my projects that have both java and scala
>code in them. For the old scala libraries I used the servicemix version
>but the new versions work with osgi.
>
>On 2015-10-12 12:55, Neil Bartlett wrote:
>
>> It's definitely possible. Scala compiles to bytecode which can be analysed for dependencies just like Java. Your bundles will import packages like scala.lang etc, so of course you need to install a bundle that exports those. I think the Scala runtime is already available as bundles. Just be aware that Scala does NOT use semantic versioning (e.g. 2.10 to 2.11 is a breaking change).
>>
>> The main problem however is tooling. Last time I looked at it the Scala IDE was really terrible, but I was still able to set it up along with Bndtools so that the Scala Builder executed just before the Bndtools Builder. Hopefully Scala IDE has improved by now, but you're certainly going to have to fiddle a lot to get a build process that you're happy with.
>>
>> Neil
>>
>>> On 12 Oct 2015, at 17:48, Frank Langel <fr...@frankjlangel.com> wrote: Hello, Does anyone have experience developing OSGI modules in Scala using Felix? Any input would be highly appreciated Best Frank
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Scala support in Apache Felix
Posted by de...@mobigov.com.
I use scala with OSGI. There is a scala tutorial out there that works
with the akka-osgi bundle.
http://doc.akka.io/docs/akka/snapshot/additional/osgi.html I use the
maven-bundle-plugin to build my projects that have both java and scala
code in them. For the old scala libraries I used the servicemix version
but the new versions work with osgi.
On 2015-10-12 12:55, Neil Bartlett wrote:
> It's definitely possible. Scala compiles to bytecode which can be analysed for dependencies just like Java. Your bundles will import packages like scala.lang etc, so of course you need to install a bundle that exports those. I think the Scala runtime is already available as bundles. Just be aware that Scala does NOT use semantic versioning (e.g. 2.10 to 2.11 is a breaking change).
>
> The main problem however is tooling. Last time I looked at it the Scala IDE was really terrible, but I was still able to set it up along with Bndtools so that the Scala Builder executed just before the Bndtools Builder. Hopefully Scala IDE has improved by now, but you're certainly going to have to fiddle a lot to get a build process that you're happy with.
>
> Neil
>
>> On 12 Oct 2015, at 17:48, Frank Langel <fr...@frankjlangel.com> wrote: Hello, Does anyone have experience developing OSGI modules in Scala using Felix? Any input would be highly appreciated Best Frank
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
Re: Scala support in Apache Felix
Posted by Neil Bartlett <nj...@gmail.com>.
It’s definitely possible. Scala compiles to bytecode which can be analysed for dependencies just like Java. Your bundles will import packages like scala.lang etc, so of course you need to install a bundle that exports those. I think the Scala runtime is already available as bundles. Just be aware that Scala does NOT use semantic versioning (e.g. 2.10 to 2.11 is a breaking change).
The main problem however is tooling. Last time I looked at it the Scala IDE was really terrible, but I was still able to set it up along with Bndtools so that the Scala Builder executed just before the Bndtools Builder. Hopefully Scala IDE has improved by now, but you’re certainly going to have to fiddle a lot to get a build process that you’re happy with.
Neil
> On 12 Oct 2015, at 17:48, Frank Langel <fr...@frankjlangel.com> wrote:
>
> Hello,
>
> Does anyone have experience developing OSGI modules in Scala using Felix? Any input would be highly appreciated
>
> Best
> Frank
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org