Skip to content

trevorism/create-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-project

Jenkins Jenkins Coverage GitHub last commit GitHub language count GitHub top language

Gradle plugin for creating a new project

Usage

Start with a blank build.gradle file in a directory. Add:

plugins { id "com.trevorism.create-project" version "0.9.0" }

to the build.gradle file.

Then invoke one of the gradle tasks:

  • createJavaProject - Creates a new java project
  • createGroovyProject - Creates a new groovy project
  • createJavaGroovyCompositeProject - Creates a new project with both java and groovy
  • createScalaProject - Creates a new scala project
  • createJavaWebProject - Creates a new java web project, with the jersey and jackson libraries.
  • createGroovySpringBootProject - Creates a new groovy web project, with spring boot.

This plugin does three things:

  • Creates the proper default folder structure for your project.
  • Updates the build.gradle in order to build your project.
  • Provides a sample class and test class so that you can see working software in your IDE.

After executing the create-project task,

gradle clean build

should run successfully, building the sample file and executing the sample test.

Plugin Information

https://plugins.gradle.org/plugin/com.trevorism.create-project

License

MIT

About

https://trevorism.com