Gradle Project Properties TODEPLETE: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 94: Line 94:


Defaults to [[#name|name]].
Defaults to [[#name|name]].
====subprojects====


==Containers==
==Containers==

Revision as of 20:06, 4 June 2018

Internal

Overview

The current project properties can be displayed with:

task displayProjectProperties {

    doLast() {

        for(Map.Entry p: project.getProperties()) {
            
            println p;
        }
    }
}

Property List

name

Gradle Project - name

group

Gradle Project - group

version

Gradle Project - version

parent

rootDir

The absolute path of the project root directory.

path

A String containing the absolute path of the project. The path of the root project is ":"

path=:

testResultsDirName

Name of the relative directory.

childProjects

projectDir

The File instance corresponding to the directory containing the build script.

projectPath

project

The Project instance.

description

A String containing the description for the project.

displayName

buildDir

A File representing <projectDir>/build.

buildFile

rootProject

rootProject.name

state

state=project state 'EXECUTED'

status

status=integration

properties

The property map.

archivesBaseName

Defaults to name.

subprojects

Containers

configurations
plugins
projectRegistry

tasks

dependencies

extensions

configurationActions

All Plugin Properties

All Externally Defined Project Properties

Interesting and Unexplained

module

script