| Type | Name and description |
|---|---|
java.lang.String |
buildIdA unique ID for each Gradle build, used to collect analytics data together for each build. |
java.lang.String |
buildTagA unique ID for each CI Server build, which might encompass multiple Gradle executions. |
java.lang.String |
buildsFileNameThe name to use for the build JSON data file. |
java.lang.Boolean |
cleanFilesWhen true, the producer task will delete all the JSON data files upon completion. |
java.lang.Boolean |
compressFilesWhen true, the producer task will compress all the JSON data files upon completion. |
java.lang.String |
dataDirNameThe name to use for the analytics data directory inside the Gradle build directory. |
java.lang.String |
formatThe format to use when writing the output data. |
java.lang.String |
gitBranchThe branch of the Git repository for the Gradle build. |
java.lang.String |
gitCommitEmailThe email address associated with the commit for the Git repository. |
java.lang.String |
gitCommitHashThe commit hash of the Git repository for the Gradle build. |
java.lang.String |
gitRepositoryUrlThe URL of the remote Git repository, as we can best determine it. |
java.lang.String |
hostnameThe hostname of the environment executing Gradle builds. |
java.lang.Boolean |
ignoreErrorsDetermines whether errors in producing data to sinks should be ignored. |
java.lang.String |
organizationThe organization name for Gradle Analytics. |
java.lang.String |
tasksFileNameThe name to use for the task JSON data file. |
java.lang.String |
testOutputFileNameThe name to use for the testoutput JSON data file. |
java.lang.String |
testsFileNameThe name to use for the test JSON data file. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.io.File |
getAnalyticsBaseDir(java.io.File buildDir)Returns the base directory where JSON analytic data files are generated. |
|
java.io.File |
getAnalyticsDir(java.io.File buildDir)Returns the specific directory where JSON analytic data files are generated. |
|
java.io.File |
getAnalyticsFile(java.lang.String filename, java.io.File buildDir) |
|
java.lang.Object |
getBuildHeader() |
|
java.lang.Object |
writeAnalytics(java.lang.String filename, java.io.File buildDir, java.lang.Object record) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
A unique ID for each Gradle build, used to collect analytics data together for each build.
The default value is the current timestamp in the format of 'YYYY-MM-DD-HHMMSSIII'. The buildId can be overridden using CI server Job IDs, for instance.
A unique ID for each CI Server build, which might encompass multiple Gradle executions.
The default value is the build tag from known CI servers, and if none are detected, then it uses buildId.
The name to use for the build JSON data file.
When true, the producer task will delete all the JSON data files upon completion.
When true, the producer task will compress all the JSON data files upon completion.
The name to use for the analytics data directory inside the Gradle build directory.
The format to use when writing the output data.
The default value is 'JSON', but 'Avro' is also supported.
The branch of the Git repository for the Gradle build.
The email address associated with the commit for the Git repository.
The commit hash of the Git repository for the Gradle build.
The URL of the remote Git repository, as we can best determine it.
The hostname of the environment executing Gradle builds. Java is used to pull the current hostname as a default.
Determines whether errors in producing data to sinks should be ignored.
The organization name for Gradle Analytics.
"organization" is added to the JSON data files to enable segmentation of data across different organizations.
The name to use for the task JSON data file.
The name to use for the testoutput JSON data file.
The name to use for the test JSON data file.
Returns the base directory where JSON analytic data files are generated.
The analytics base directory is in the Gradle build directory.
buildDir - The Gradle build directoryReturns the specific directory where JSON analytic data files are generated.
The analytics directory is in the Gradle build directory, and is dependent on the buildId.
buildDir - The Gradle build directory