Create a giter8 app template to set up ac-play apps

Issue #2 wontfix
Robert Bergman created an issue

While the docs for creating ac-play apps in the README are well done, it would be much nicer to be able to generate a starter app from a template (or 2, for either Java or Scala) using the play new CLI.

It appears that this is possible by creating a giter8 template repo on github and then specifying it as part of the play new command line with the --g8 <template name> parameter, like so:

play new <app name> --g8 atlassian/atlassian-connect-play-java-template

I found this template which might serve as a decent example.

Comments (2)

  1. Robert Bergman Account Deactivated reporter

    I created a first draft of such a template. You can try it out with the following command (tested in Play! 2.1.2):

    play new <app name> --g8 https://bitbucket.org/rbergman/atlassian-connect-play-java-template.g8
    

    There seems to be a bug with the g8 feature in play where the prompts for template params don't display what you type in when filling them out, but they do work.

    If this looks like a positive way to go, I can move the template repo over to the atlassian bb user and close this out. In that case, we would also want to update this project's README and possibly remove or simplify the app set up walk through pages on the /(at)connect routes from this module.

  2. Log in to comment