scala gradle play template - maxbalan/gradle-custom-init GitHub Wiki

##Introduction This template will build a gradle + scala + play framework Hello world application.

How to build

In order to build a scala-gradle-play project make sure you've read and are using one of the methods described in the How-To-Use page. It does not matter which approach you choose bash script or plugin directly you will have to specify the same parameters:

  • Required arguments:

    • --project-type - set it to scala-gradle-play

          --project-type scala-gradle-play
      
  • Optional arguments:

    • --project-target - set target directory where the project will be created. Default will be set or the directory where the script is being called from e.g.:

          --project-target "/foo/boo/project_dir"
      
    • --library-version-source - set the source to a .propeties file to override default provided properties. Set it only in case you wanna override the default library version.

          --library-version-source "/foo/boo/FileName.properties"
      
    • --group - set your own group parameter value. Default --project-target directory name will be used

           --group "foo.project"
      

A minimal configuration to build it will look like this:

  • for bash script:

          sh ExecuteCustomInit.sh --project-type scala-gradle-play --project-target "foo/my_project"
    
  • for direct plugin call

        gradle --project-type scala-gradle-play --project-target "foo/my_project"