Gradle Project Coordinates, State and Configured Properties

From NovaOrdis Knowledge Base
Revision as of 01:13, 4 October 2020 by Ovidiu (talk | contribs) (→‎Name)
Jump to navigation Jump to search

Internal

Overview

The project coordinates such as name, group, version, description and path can be read from build.gradle as values of DSL variables. Some of the coordinates, such as group, version and description can also be set. The coordinates are also available programmatically via the Project API.

Coordinates

Name

The project name can be obtained programmatically with Project.getName() or with the name DSL variable:

println project.name

Group

Version

Description

Path

Project Directory