Giter VIP home page Giter VIP logo

gradle-template's Introduction

Description

Project for creating new projects.

Building

The project is built using Gradle, which provides bootstrapping wrapper support so that the only thing that needs to be installed on the build machine is Java (because of Java licensing distribution rules).

You can run "gradlew" (i.e., "./gradlew" on *nix or "gradlew.bat" on Windows) from the top level directory, followed by the desired tasks.

For example, to do a clean build -- including running all quality tests and creating the distribution jars -- simply run "gradlew clean build"

To see a complete list of available tasks, run "gradlew tasks".

To create project files for IntelliJ IDEA or STS/Eclipse, specify that as the Gradle task. (i.e., "gradlew idea" or "gradlew eclipse")

Running

To create a stand-alone application of this, run "gradlew installApp" or "gradlew distZip".

"installApp" will put the binaries in the build/install/gradle-template directory.

"distZip" will zip everything up and put it in the build/distributions/ directory.

To see the list of options, run the program with no options supplied.

ToDo

Done

  • Accept CLI arguments
  • Create target top-level directory
  • Initialize Git project
    • .gitignore
    • README.md
    • git add .gitignore README.md
  • Create default .gitignore and README.md files
  • Create src dir structure for kind of project (Java, Groovy)
  • Gradle create "application" of this
  • Create Gradle wrapper
  • Create base build.gradle and gradle.properties files
  • Add option to add GitHub/BitBucket support.

gradle-template's People

Contributors

jdigger avatar

Stargazers

平江 avatar Ken Wasetis avatar Jon Austen avatar Daniel Davies avatar Eric Wendelin avatar  avatar

Watchers

 avatar James Cloos avatar

gradle-template's Issues

Move the templates outside of this project

Make it possible to use arbitrary templates, rather than hard-coded ones in this project.

Possible approaches include:

  • using GitHub as a template host, akin to Conscript
  • a directory structure at a URL
  • a zip file at a URL

..where URLs can also be local files. There's no reason why all three couldn't be easily supported.

It may be useful to provide for aliasing, but that would likely be better done via the shell's aliasing features. e.g.:

alias new_groovy = gradle-template http://server/my-groovy-template.zip 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.