For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.3
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.tooling.model.cpp
/
CppProject
Cpp
Project
API
interface
CppProject
:
ProjectModel
(
source
)
Details about the C++ components of a Gradle project.
Since
4.10
Members
Functions
get
Main
Component
Link copied to clipboard
API
@
Nullable
abstract
fun
getMainComponent
(
)
:
@
Nullable
CppComponent
Returns the main C++ component of this project, if any.
get
Project
Identifier
Link copied to clipboard
API
abstract
fun
getProjectIdentifier
(
)
:
ProjectIdentifier
Returns the identifier for the project that this model is associated with.
get
Test
Component
Link copied to clipboard
API
@
Nullable
abstract
fun
getTestComponent
(
)
:
@
Nullable
CppTestSuite
Returns the C++ unit test suite of this project, if any.