We can use the description property of a Gradle project to describe the purpose of our project.
version = '1.0-bugfix' description = """\ Simple Gradle project to show how we can use the description property of a project. ------------------------------------------ Project version: ${version} Gradle version: ${gradle.gradleVersion} ------------------------------------------ """
When we invoke $ gradle projects
we get to see our project description in the output.
$ gradle -q projects Root project 'description' - Simple Gradle project to show how we can use the description property of a project. ------------------------------------------ Project version: 1.0-bugfix Gradle version: 0.9-rc-2 ------------------------------------------ No sub-projects To see a list of the tasks of a project, run gradle <project-path>:tasks For example, try running gradle :tasks
Written with Gradle 0.9.