Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Java Groovy Other
Branch: master

Web example

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

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.