From reading how to improve Gradle build performance, I understand that dependencies should not be downloaded in configuration phase.
I am using remote build cache always running builds from scratch in empty Docker container.
My build always downloads all dependencies for :compileClasspath even if :compileJava task is taken from build cache.
I was under impression that Gradle would not download dependencies if :compileJava is already in cache and there is no need for its execution.
Here is sample build.gradle
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
def springBootVersion = '2.4.2'
implementation "org.springframework.boot:spring-boot-starter:$springBootVersion"
}