Gradle auto-generate java project
##How to generate java project with gradle
gradle1.7
Contains the build-setup plugin, supports declaring project type when setting up a build.
- task-type
- SetupBuild
- plugin
- build-setup
- task
- buildSetup
so, you can type
1 | gradle setupBuild --type java-library |
gradle1.9
task-type
- SetupBuild -> InitBuild
plugin
- build-setup -> build-init
task
- buildSetup -> init
init project on gradle 1.9 or more greater
1 | gradle init --type [java-library | scala-library | groovy-library | basic | pom] |