in gradle-runner-agent/src/main/java/jetbrains/buildServer/gradle/agent/commandLineComposers/GradleToolingApiCommandLineComposer.java [183:201]
private Boolean readAllBuildParamsRequired(final boolean configurationCacheEnabled,
@NotNull final Map<String, String> configParams,
@NotNull final BuildProgressLogger logger) {
if (configParams.containsKey(GRADLE_RUNNER_READ_ALL_CONFIG_PARAM)) {
return Boolean.valueOf(configParams.get(GRADLE_RUNNER_READ_ALL_CONFIG_PARAM));
}
if (!configurationCacheEnabled) {
return true;
}
logger.message(
"This Gradle step uses a configuration cache.\n" +
"To ensure the configuration cache operates as expected, parameters whose values always change from build to build (for example, build.id or build.number) " +
"will be loaded only on demand. \n" +
"You can still obtain values of these properties using direct references (for example, project.teamcity[\"build.number\"]), " +
"but the project.findProperty(\"build.number\") or project[\"build.number\"] yields no results.");
return false;
}