java dropwizard template - maxbalan/gradle-custom-init GitHub Wiki
##Introduction
This template will build a gradle + java + drowizard Hello world
application.
How to build
In order to build a java-dropwizard 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 java-dropwizard
--project-type java-dropwizard
-
-
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"
-
--project-structure - set a package to be created when building a project. Default project structure is:
* src *main *java *project_files
For example you want the package structure to be something like:
* src *main *java *com *github *project_files
then set it as follow
--project-structure "com.github"
-
A minimal configuration to build it will look like this:
-
for bash script:
sh ExecuteCustomInit.sh --project-type java-dropwizard --project-target "foo/my_project"
-
for direct plugin call
gradle --project-type java-dropwizard --project-target "foo/my_project"