Scala plugin for play framework 2 - scala

Is there any official documentation how to create play framework 2 plugin in scala, I find this link but it is not clear for me. I actually need to add to play command like "play migrate", is it possible to do with just sbt? Appreciate any help.

Its a bit uncertain what it is that you are trying to achieve. Maybe you can elaborate a bit ?
The play 2.3.x documentation on plugins, have been improved quite a bit over that of 2.2.x.
https://www.playframework.com/documentation/2.3.x/ScalaPlugins

Related

Find out play! version number (e.g. 2.1.3) in application code

Does anyone know how to find out which version of play! an application is running with during runtime? I thought there might perhaps be something like play.api.Play.current.frameworkVersion.
I searched the API doc at http://www.playframework.com/documentation/api/2.1.x/scala/index.html#package for anything useful, but could not find anything.
I think I probably could hack together something like writing the SBT plugin version into a file during the compile/stage which I can then read at runtime. But I was hoping there would be a less cumbersome way of doing this...
Cheers, Alex
How about:
play.core.PlayVersion.current();
found in: http://www.playframework.com/documentation/api/2.2.0-M2/scala/index.html#play.core.PlayVersion$

How to mavenize a Scala / Akka / Play project?

I have a small project which uses Scala, Akka and Play combined. The way I set it up is the old-school way: download everything and link. I would like instead to mavenize the whole thing. Could you recommend me a clear, specific guide to do this? Thanks in advance.
Don't use Maven - use SBT - it's the build tool of choice.
Note maven is now squarely in the thoughtworks radar Hold section meaning nobody should be building new projects on it if you trust Fowler's advice: http://www.thoughtworks.com/radar
Play comes with sbt under the hood already so you shouldn't have to look to far from where you are now:
http://www.playframework.com/documentation/2.0/Build

Difficult to grasp the scala template in play 2.0

I have earlier worked with play 1.2.4 and found the groovy template quite easier as compared to scala template in play 2.0. I have gone through the documentation of play 2.0. It seems that I should have some initial knowledge in scala. Please help me out or suggest me some tutorial to grasp a good knowledge in scala templates so that i can play with play 2.0....
Start with a beginner tutorial like this one
The playframework website- template section is a good next section to explore. You wont find everything you need on there but its got the nittygritties to templating.
You might also want to look into the basics of Scala syntax, this is a good tutorial
From there on you should have foundations and if you run into further obstacles I'm sure you can figure them out via trial and error or through asking more specific questions
Good luck

Is there a beginner introduction to writing Eclipse plugins?

I have tried and failed to create to find any good tutorials on writting plugins for Eclipse and the closest I have assumed a large degree of knowledge about the internals of Eclipse.
For what it is worth I have the programming skills to write the plugin. I need help with getting it plugged into Eclipse correctly.
The best tutorial I've found is Lars Vogels Plugin tutorial. Have a look at his other other Eclipse tutorials aswell. Alot of good content there.
Maybe this could be an interesting site for you:
http://www.eclipsepluginsite.com/
It covers setting up your plugin to advanced plugin tutorials.
I personally use it all the time.

Examples and extension in Nuxeo

I'm trying to set up Nuxeo's examples, but I can't get them working. Does someone succeed in compiling and deploying them ?
I know it uses JAX-RS, but I'm still trying to set up a project with Eclipse to generate bundles, and I'm quite lost. I would be very happy if someone could give me a compiling project, or a link for a simple and clear documentation.
Thanks for your help.
Which examples are you trying to run ?
Did you look at http://doc.nuxeo.com/ ?