A powerful build system for the JVM
Java Groovy C++ JavaScript C CSS Other
Switch branches/tags
lp-custom-component-from-jar-source-cedrics-model-action REL_2.9-20151025230037+0000 REL_2.9-20151024220034+0000 REL_2.9-20151023220023+0000 REL_2.9-20151022220036+0000 REL_2.9-20151021220033+0000 REL_2.9-20151020220032+0000 REL_2.9-20151019220034+0000 REL_2.9-20151018220032+0000 REL_2.9-20151017220021+0000 REL_2.9-20151016220028+0000 REL_2.9-20151015220022+0000 REL_2.9-20151014220022+0000 REL_2.9-20151013220029+0000 REL_2.9-20151012220022+0000 REL_2.9-20151011220031+0000 REL_2.9-20151010220026+0000 REL_2.9-20151009220019+0000 REL_2.9-20151008220023+0000 REL_2.9-20151007220020+0000 REL_2.9-20151006220027+0000 REL_2.9-20151005220025+0000 REL_2.9-20151004220033+0000 REL_2.9-20151003220023+0000 REL_2.9-20151002220031+0000 REL_2.9-20151001220027+0000 REL_2.9-20150930220016+0000 REL_2.9-20150929220024+0000 REL_2.9-20150928220022+0000 REL_2.9-20150927220024+0000 REL_2.8 REL_2.8-rc-2 REL_2.8-rc-1 REL_2.8-20150926220017+0000 REL_2.8-20150925220029+0000 REL_2.8-20150924220027+0000 REL_2.8-20150923220017+0000 REL_2.8-20150922220020+0000 REL_2.8-20150921220030+0000 REL_2.8-20150920220021+0000 REL_2.8-20150919220425+0000 REL_2.8-20150918220036+0000 REL_2.8-20150917220038+0000 REL_2.8-20150916220040+0000 REL_2.8-20150915220037+0000 REL_2.8-20150914220024+0000 REL_2.8-20150913220024+0000 REL_2.8-20150912220033+0000 REL_2.8-20150911220041+0000 REL_2.8-20150910220033+0000 REL_2.8-20150909220037+0000 REL_2.8-20150908220037+0000 REL_2.8-20150907220034+0000 REL_2.8-20150906220048+0000 REL_2.8-20150905220141+0000 REL_2.8-20150904220040+0000 REL_2.8-20150903220029+0000 REL_2.8-20150902220034+0000 REL_2.8-20150901220027+0000 REL_2.8-20150831220041+0000 REL_2.8-20150830220030+0000 REL_2.8-20150829220034+0000 REL_2.8-20150828220023+0000 REL_2.8-20150827220037+0000 REL_2.8-20150826220045+0000 REL_2.8-20150825220031+0000 REL_2.8-20150824220027+0000 REL_2.8-20150823220028+0000 REL_2.8-20150822220037+0000 REL_2.8-20150821220026+0000 REL_2.8-20150820220032+0000 REL_2.8-20150819220042+0000 REL_2.8-20150818220018+0000 REL_2.8-20150817220036+0000 REL_2.7 REL_2.7-rc-2 REL_2.7-rc-1 REL_2.7-20150816220036+0000 REL_2.7-20150815220039+0000 REL_2.7-20150814220034+0000 REL_2.7-20150813220047+0000 REL_2.7-20150812220036+0000 REL_2.7-20150811220035+0000 REL_2.7-20150810220059+0000 REL_2.7-20150809220037+0000 REL_2.7-20150808220104+0000 REL_2.7-20150807221030+0000 REL_2.7-20150806220021+0000 REL_2.7-20150805220044+0000 REL_2.7-20150804220032+0000 REL_2.7-20150803220020+0000 REL_2.7-20150802220036+0000 REL_2.7-20150801220022+0000 REL_2.7-20150731220034+0000 REL_2.7-20150730220033+0000 REL_2.7-20150729220023+0000 REL_2.7-20150728220033+0000 REL_2.7-20150727220029+0000 REL_2.7-20150726220030+0000 REL_2.7-20150725220035+0000
Nothing to show
Clone or download
Pull request Compare This branch is 24882 commits behind gradle:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Gradle Logo

Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites. Gradle has been designed to support build automation across multiple languages and platforms including Java, Scala, Android, C/C++, and Groovy, and is closely integrated with development tools and continuous integration servers including Eclipse, IntelliJ, and Jenkins.

For more information about Gradle, please visit: http://gradle.org


You can download released versions and nightly build artifacts from: http://gradle.org/downloads


Naturally, Gradle builds itself with Gradle. Gradle provides an innovative wrapper that allows you to work with a Gradle build without having to manually install Gradle. The wrapper is a batch script on Windows and a shell script on other operating systems.

You should use the wrapper to build the gradle project. Generally, you should use the wrapper for any wrapper-enabled project because it guarantees building with the Gradle version that the build was intended to use.

To build the entire Gradle project, you should run the following in the root of the checkout.

./gradlew build

This will compile all the code, generate all the documentation and run all the tests. It can take up to an hour on a fast machine because we have thousands of tests, including integration tests that exercise virtually every Gradle feature. Among the things we test are: compatibility across versions, validity of samples and Javadoc snippets, daemon process capabilities, etc.

Installing from source

To create an install from the source tree you can run either of the following:

./gradlew install -Pgradle_installPath=/usr/local/gradle-source-build

This will create a minimal installation; just what's needed to run Gradle (i.e. no docs). Note that the -Pgradle_installPath denotes where to install to.

You can then build a Gradle based project with this installation:

/usr/local/gradle-source-build/bin/gradle «some task»

To create a full installation (includes docs):

./gradlew installAll -Pgradle_installPath=/usr/local/gradle-source-build

Working with subprojects

The Gradle build uses Gradle's ability to customize the logical structure of a multiproject build. All of the build's subprojects are in the subprojects/ directory and are mapped to top level children in settings.gradle.

This means that to build just the core subproject (that lives in subprojects/core) you would run:

./gradlew core:build

Or to build the docs:

./gradlew docs:build

And so on.


If you're looking to contribute to Gradle or provide a patch/pull request, you can find info on how to get in touch with the developers at http://gradle.org/development.

Contributing Code

This is a complicated topic and the Gradle development team are happy to help anybody get started working with the Gradle code base, so don't hesitate to get in touch with the developers if you need help working with the finer points of the build.

If you are simply wanting to fix something or adding a small minor feature, it is usually good enough to simply make your change to the code and then run the check task for that subproject. So if the patch was to the launcher package for example, you can run:

./gradlew launcher:check

To run all of the tests and code quality checks for that module.

Contributing Documentation

Please see the readme in the docs subproject.

Opening in your IDE

IntelliJ IDEA

To open the Gradle project in IDEA, simply run the following task from the root:

./gradlew idea

This will generate appropriate IDEA metadata so that the project can be opened from within IDEA. Also, IntelliJ Run Configurations will be generated, which allow you to run/debug Gradle or run pre-commit tests.

Note that due to an IDEA glitch, the first build of Gradle from IDEA will fail. Launching a second build fixes the compilation error.


Gradle Integration for Eclipse (by Pivotal)

The Gradle project is not currently buildable in Eclipse. This is something that will be rectified in the future.

You can try running:

./gradlew eclipse

This command generates Eclipse metadata that allows importing the project into Eclipse. However, you will have to do some manual fixes to the project's setup to make it work.

Gradle for Eclipse (by Nodeclipse/Enide)

With Gradle(Enide) Eclipse plugin, you can import as general plugin or prepare before with ./gradlew eclipse.

Build is run via right-click on build.gradle Run As -> gradle build Gradle Build