sbt dist with version 2.3.2

77 views
Skip to first unread message

John Kelvie

unread,
May 20, 2014, 5:06:37 PM5/20/14
to akka...@googlegroups.com
I see that in earlier versions of Akka, distributions could be made via a dist task provided by the akka-sbt-plugin:
http://doc.akka.io/docs/akka/2.2.1/scala/microkernel.html 

This, however, is no longer an option with version 2.3.2.

There is still a "package" task, but that only creates a jar file with our code - we are left to gather up the jars we need and include them in a distribution from what I can tell.

This seems very arduous - why is there no task that will automatically assemble the application code along with dependent jars into, say, a zip file for easy distribution? What is the recommendation currently on 2.3.2 for deploying a microkernel project to a server? 

-John

ahjohannessen

unread,
May 20, 2014, 6:49:37 PM5/20/14
to akka...@googlegroups.com
I recommend that you use sbt-native-packager instead. It is much more powerful and a breeze to use.

Shawn

unread,
Aug 17, 2014, 1:40:59 AM8/17/14
to akka...@googlegroups.com
I'd like to hear more on this as well. Searching the documentation for 2.3.5 doesn't even discuss deployment in any detail. 

I recognize that sbt-native-packager is cool, but for an later version of Akka to have less documentation on "how to deploy" than the previous version is rather sad, especially given Scala's reputation.

Konrad 'ktoso' Malawski

unread,
Aug 17, 2014, 9:08:12 AM8/17/14
to akka...@googlegroups.com, ahjohannessen
Hi guys,
The sbt guys are pouring loads of effort into making apps easily packagable using that plugin.
So instead of having a custom akka plugin we’d rather recommend that one.

I created an issue for linking to the native packager in the docs https://github.com/akka/akka/issues/15677

Cheers!

-- 
Konrad 'ktoso' Malawski
hAkker @ typesafe

Shawn

unread,
Aug 17, 2014, 12:33:26 PM8/17/14
to akka...@googlegroups.com, ahjoha...@gmail.com
Konrad, I don't see how simply linking to sbt-native-packager helps with the original question.

As I mentioned, sbt-native-packager has nothing akka specific about it, whereas akka-sbt-plugin was akka-aware and did akka-specific things.

What the documentation needs is an example built.sbt or instructions on how to achieve at least the same capability as akka-sbt-plugin but using sbt-native-packager.

Konrad Malawski

unread,
Aug 17, 2014, 3:21:16 PM8/17/14
to Akka User List, Alex Henning Johannessen
Sure, agreed – feel free to add this requirement to the issue and we'll get to it eventually (or someone of the community might give a helping hand here).


--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,
Konrad 'ktoso' Malawski
hAkker @ Typesafe


Patrik Nordwall

unread,
Aug 18, 2014, 2:20:12 AM8/18/14
to akka...@googlegroups.com
I agree, but I would like to add that as described in the migration guide the old 2.2.x akka dist plugin can be used to package akka 2.3.x applications.

/Patrik

Patrik Nordwall
Typesafe Reactive apps on the JVM
Twitter: @patriknw

Roland Kuhn

unread,
Aug 18, 2014, 6:51:32 AM8/18/14
to akka-user
Hi Shawn,

the migration guide talks about this briefly, in short the akka-sbt-plugin from 2.2.x works just fine for other versions including 2.3.x, but you are right that we’ll have to expand on deployment documentation. We have planned to work on this later this year, if someone beats us to it (15677 & 13538) then we’ll gladly review any proposals.

Regards,

Roland

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Reactive apps on the JVM.
twitter: @rolandkuhn


Roland Kuhn

unread,
Aug 18, 2014, 7:33:15 AM8/18/14
to akka-user, ahjoha...@gmail.com
Hi Shawn,

one consideration is that Akka (as a toolkit) does not really need all that much special handling. The simplest way is to use akka.Main as the main class and tell native packager to call that with the class name of your application supervisor actor and you’re all set (see here for an example using Linux/Mac, I don’t have Windows to test on). Documenting that of course still needs to be done, but the quick fix is to search these archives.

Regards,

Roland

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages