Package org.sonarqube.gradle
Class ProjectProperties
java.lang.Object
org.sonarqube.gradle.ProjectProperties
An immutable data transfer object that holds resolved dependency information for a Gradle project.
This class is used during the Gradle execution phase to transfer resolved classpath
information between tasks, specifically from SonarResolverTask to SonarTask.
It is an internal implementation detail and is not exposed to users.
Purpose:
- Carries resolved compile and test classpaths after dependency resolution
- Supports Gradle configuration cache by being serializable/deserializable
- Ensures immutability for safe sharing between tasks
Note: This class is for internal task-to-task communication, not for user configuration.
For user-facing property configuration, see SonarProperties.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe resolved source directories for an Android project.The resolved test directories for an Android project.Resolved absolute paths of compile classpath dependenciesfinal BooleanWhether this project is the root project of the analysisFiltered main libraries (subset of compileClasspath) for SonarQube analysisfinal StringThe Gradle project name (e.g., ":subproject" for subprojects, "" for root)Resolved absolute paths of test compile classpath dependenciesFiltered test libraries (subset of testCompileClasspath) for SonarQube analysis -
Method Summary
-
Field Details
-
projectName
The Gradle project name (e.g., ":subproject" for subprojects, "" for root) -
isRootProject
Whether this project is the root project of the analysis -
compileClasspath
Resolved absolute paths of compile classpath dependencies -
testCompileClasspath
Resolved absolute paths of test compile classpath dependencies -
mainLibraries
Filtered main libraries (subset of compileClasspath) for SonarQube analysis -
testLibraries
Filtered test libraries (subset of testCompileClasspath) for SonarQube analysis -
androidSources
The resolved source directories for an Android project. -
androidTests
The resolved test directories for an Android project.
-