Gradle Project: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 17: Line 17:
=Project API=
=Project API=


The build runtime can be configured with [] and [] which correspond to the following DSL elements:
The build runtime can be configured with [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#buildscript-groovy.lang.Closure- Porject.buildscript(Closure)] which corresponds to the following DSL element:
<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>
apply '' ''
buildscript {
buildscript {
   // configuration closure
   // configuration closure
}
}
</syntaxhighlight>'
</syntaxhighlight>'
Plugins can be configured with


=Project Directory=
=Project Directory=
=Multi-Project Builds=
=Multi-Project Builds=
{{Internal|Gradle Multi-Project Builds#Overview|Multi-Project Builds}}
{{Internal|Gradle Multi-Project Builds#Overview|Multi-Project Builds}}

Revision as of 00:13, 4 October 2020

External

Internal

TO DEPLETE

Gradle Project and Build Script

Overview

A Gradle project typically represents a software component to be built by executing a set of tasks in sequence. A project has a direct class representation in the Gradle domain model: org.gradle.api.Project.

The project instance is available to the build.gradle script via the project variable, which corresponds to the Project.getProject() accessor. The project instance is not available in settings.gradle, only the root project descriptor via rootProject variable, which corresponds to Settings.getRootProject().

Project API

The build runtime can be configured with Porject.buildscript(Closure) which corresponds to the following DSL element:

buildscript {
  // configuration closure
}

'


Plugins can be configured with

Project Directory

Multi-Project Builds

Multi-Project Builds