Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Web example

latest commit 0f8b1e6022
Tim Berglund authored December 24, 2012
Octocat-spinner-32 ant-antbuilder Improved AntBuilder example May 24, 2011
Octocat-spinner-32 ant-antdependsongradle Added example of linkage between Ant and Gradle tasks May 24, 2011
Octocat-spinner-32 ant-classpathanttogradle Added Ant classpath from Gradle to Ant and Ant to Gradle examples May 24, 2011
Octocat-spinner-32 ant-classpathgradletoant Added Ant classpath from Gradle to Ant and Ant to Gradle examples May 24, 2011
Octocat-spinner-32 ant-closuresforantbuilder Ant nested closures example May 24, 2011
Octocat-spinner-32 ant-customtaskuse Put an output message (note) for the intentionally failing checkstyle… October 22, 2011
Octocat-spinner-32 ant-define-property Improved properties example for use - Gradle and Ant interop. May 20, 2011
Octocat-spinner-32 ant-dolast Adding example runs 1 through 4 on the ant-dolast example June 27, 2011
Octocat-spinner-32 ant-groovypower Pluralizing char to chars to indicate it is being used as a string, n… June 05, 2011
Octocat-spinner-32 ant-import-to-gradle Added example of importing an entire Ant build into Gradle, maintaini… April 28, 2011
Octocat-spinner-32 ant-simple-echo Refactoring the Ant project names for clarity May 24, 2011
Octocat-spinner-32 buildscript-markdown An example of using the buildscript {} block December 12, 2012
Octocat-spinner-32 complex-file-copy Adding an example-runner for the complex file copying example October 22, 2011
Octocat-spinner-32 custom-task Add runner to custom task example October 22, 2011
Octocat-spinner-32 file-collection-lab Fixed bug in the Spring application context file of the file collecti… March 23, 2012
Octocat-spinner-32 file-operations-lab Added some examples to illustrate FileCollection API March 21, 2012
Octocat-spinner-32 filtering Fixed copyAndHash example March 20, 2012
Octocat-spinner-32 hello-minimal-build-file Renaming all tasks and hello world samples to have a common prefix to… June 04, 2011
Octocat-spinner-32 hello-minimal-java-build-file Renaming all tasks and hello world samples to have a common prefix to… June 04, 2011
Octocat-spinner-32 hello-nativeexecute Shell execution example on a Mac July 17, 2011
Octocat-spinner-32 hello-smart-exclusions Adding a smart exclusions example June 22, 2011
Octocat-spinner-32 hello-two-task-build-file Renaming all tasks and hello world samples to have a common prefix to… June 04, 2011
Octocat-spinner-32 hooks-addrule Converted ping rule example to HTTP reachability October 31, 2012
Octocat-spinner-32 hooks-afterevaluate Changes to afterevaluate hooks October 14, 2012
Octocat-spinner-32 hooks-afterevaluateonsubproject Improvements to hooks afterevaluation example October 22, 2011
Octocat-spinner-32 hooks-lab Finished buildFinished() example October 29, 2012
Octocat-spinner-32 hooks-rule-class First pass at the rule hooks examples November 08, 2012
Octocat-spinner-32 java-build-with-resources Added JavaExec task to java-build-with-resources November 09, 2012
Octocat-spinner-32 maven-default-task Added run build files for simple ant and maven default task samples April 27, 2011
Octocat-spinner-32 maven-gradle-comparison-configinstall Code examples, first pass March 18, 2011
Octocat-spinner-32 maven-gradle-comparison-defaulttasks Creating new demo project for default tasks April 10, 2011
Octocat-spinner-32 maven-gradle-comparison-dependency-fields Got all tests working April 28, 2011
Octocat-spinner-32 maven-gradle-comparison-dependency-groovy Made long lines wrap better for the book June 06, 2011
Octocat-spinner-32 maven-gradle-comparison-dependency-iterateprint Sample build that prints all dependencies June 06, 2011
Octocat-spinner-32 maven-gradle-comparison-dependency-simplest Got all tests working April 28, 2011
Octocat-spinner-32 maven-gradle-comparison-simple Building code for the simplest maven to gradle comparison example March 19, 2011
Octocat-spinner-32 maven-gradle-comparison-tests Removing the default task, since that can be introduced later March 19, 2011
Octocat-spinner-32 maven-gradle-comparison-withallattrs Removing the default task, since that can be introduced later March 19, 2011
Octocat-spinner-32 maven-gradle-comparison-withattrs Removing the default task, since that can be introduced later March 19, 2011
Octocat-spinner-32 maven-m2metadataplugin Gradle m2metadata plugin example May 26, 2011
Octocat-spinner-32 maven-multiplesourcedirs Adding directory via a second (method call) approach in the multiples… June 06, 2011
Octocat-spinner-32 maven-properties-comparison Renaming all tasks and hello world samples to have a common prefix to… June 04, 2011
Octocat-spinner-32 maven-smallest-maven-pom Renamed smallest maven POM example and added a run script to convert … May 26, 2011
Octocat-spinner-32 maven-uploadlocal Added example for local repo deploy of Maven artifacts May 26, 2011
Octocat-spinner-32 maven-uploadwebdav Maven webdev upload example May 26, 2011
Octocat-spinner-32 multiproject-eclipse-plugin Added runners to multiproject examples October 22, 2011
Octocat-spinner-32 multiproject-hybrid Added runners to multiproject examples October 22, 2011
Octocat-spinner-32 multiproject-individual Updated the multiproject-individual project December 12, 2012
Octocat-spinner-32 multiproject-unified Added runners to multiproject examples October 22, 2011
Octocat-spinner-32 other-clarifying-confusing-syntax Added runner to clarifying example October 22, 2011
Octocat-spinner-32 other-printalldependencies Added runner to printing of dependencies October 22, 2011
Octocat-spinner-32 other-sonar-java-build-file Renaming all tasks and hello world samples to have a common prefix to… June 04, 2011
Octocat-spinner-32 other-weld Adding readme for Weld example May 31, 2011
Octocat-spinner-32 plugins Added plugins example October 14, 2012
Octocat-spinner-32 rename Added rename examples January 05, 2012
Octocat-spinner-32 tasks-copy-task Ignore target output directory October 22, 2011
Octocat-spinner-32 tasks-copyfunction Added example of copying files with a before and after from and to July 17, 2011
Octocat-spinner-32 tasks-custom-task-buildsrc Renaming all tasks and hello world samples to have a common prefix to… June 04, 2011
Octocat-spinner-32 tasks-custom-task Renaming all tasks and hello world samples to have a common prefix to… June 04, 2011
Octocat-spinner-32 tasks-dag-diagram Renamed tasks DAG diagram May 24, 2011
Octocat-spinner-32 tasks-jar-task Fix driver script. September 14, 2012
Octocat-spinner-32 tasks-javaexec-task Merge commit 'refs/pull/1/head' of github.com:gradleware/oreilly-grad… October 29, 2012
Octocat-spinner-32 tasks-task-lab Fix driver to also run onlyIf with property set to illustrate task be… September 14, 2012
Octocat-spinner-32 testing-geb Geb execution test harness May 25, 2011
Octocat-spinner-32 testing-integration Updating integration test example to run the integration tests May 25, 2011
Octocat-spinner-32 testing-junit Added simple junit test example May 25, 2011
Octocat-spinner-32 testing-junitforkedthreads Renamed testing-junit to testing-junitforkedthreads May 25, 2011
Octocat-spinner-32 testing-spock Spock execution test harness May 25, 2011
Octocat-spinner-32 testing-testng Ignoring IntelliJ bin directory June 22, 2011
Octocat-spinner-32 web-hello-world Web example December 24, 2012
Octocat-spinner-32 wrapper-minimal Changed to be a java project for wrapper example January 01, 2012
Octocat-spinner-32 .gitignore Added a new multiproject build with an example of how to use the Ecli… July 07, 2011
Octocat-spinner-32 README.md Adding a readme March 18, 2011
Octocat-spinner-32 test-all-builds.bsh Sleep upon error in running all the builds (test harness) so that the… November 05, 2011
README.md

This is the set of sample projects for the O'Reilly Gradle Book series.

Please feel free to send pull requests that make the use of Gradle or Groovy more idiomatic. Additional samples are also welcomed.

Each project should have a README.md and a run-example.bsh script. The script allows for executions user would type at the command line to showcase that particular example in action.

Thanks, Matthew McCullough & Tim Berglund, Authors

Something went wrong with that request. Please try again.