File tree Expand file tree Collapse file tree 6 files changed +38
-0
lines changed Expand file tree Collapse file tree 6 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 11import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
22import com.bmuschko.gradle.docker.tasks.image.DockerPushImage
3+ import com.google.cloud.tools.jib.gradle.JibTask
34import java.time.LocalDateTime
45import java.time.format.DateTimeFormatter
56
@@ -48,6 +49,11 @@ tasks {
4849 }
4950 }
5051
52+ withType<JibTask >().configureEach {
53+ // Jib tasks access Task.project at execution time which is not compatible with configuration cache
54+ notCompatibleWithConfigurationCache(" Jib task accesses Task.project at execution time" )
55+ }
56+
5157 javadoc {
5258 isEnabled = false
5359 }
Original file line number Diff line number Diff line change 1+ import com.google.cloud.tools.jib.gradle.JibTask
12import java.time.LocalDateTime
23import java.time.format.DateTimeFormatter
34
4243 from.image = " eclipse-temurin:$targetJDK "
4344 to.image = " ghcr.io/$repo /smoke-test-grpc:jdk$targetJDK -$tag "
4445}
46+
47+ tasks {
48+ withType<JibTask >().configureEach {
49+ // Jib tasks access Task.project at execution time which is not compatible with configuration cache
50+ notCompatibleWithConfigurationCache(" Jib task accesses Task.project at execution time" )
51+ }
52+ }
Original file line number Diff line number Diff line change 1+ import com.google.cloud.tools.jib.gradle.JibTask
12import org.gradle.jvm.toolchain.JavaLanguageVersion
23import play.gradle.Language
34import java.time.LocalDateTime
4445 to.image = " ghcr.io/$repo /smoke-test-play:jdk$targetJDK -$tag "
4546 container.mainClass = " play.core.server.ProdServerStart"
4647}
48+
49+ tasks {
50+ withType<JibTask >().configureEach {
51+ // Jib tasks access Task.project at execution time which is not compatible with configuration cache
52+ notCompatibleWithConfigurationCache(" Jib task accesses Task.project at execution time" )
53+ }
54+ }
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ tasks {
6565
6666 withType<JibTask >().configureEach {
6767 dependsOn(quarkusBuild)
68+ // Jib tasks access Task.project at execution time which is not compatible with configuration cache
69+ notCompatibleWithConfigurationCache(" Jib task accesses Task.project at execution time" )
6870 }
6971
7072 compileJava {
Original file line number Diff line number Diff line change 1+ import com.google.cloud.tools.jib.gradle.JibTask
12import java.time.LocalDateTime
23import java.time.format.DateTimeFormatter
34
3334 container.mainClass = " io.opentelemetry.smoketest.securitymanager.Main"
3435 container.jvmFlags = listOf (" -Djava.security.manager" , " -Djava.security.policy=/app/resources/security.policy" )
3536}
37+
38+ tasks {
39+ withType<JibTask >().configureEach {
40+ // Jib tasks access Task.project at execution time which is not compatible with configuration cache
41+ notCompatibleWithConfigurationCache(" Jib task accesses Task.project at execution time" )
42+ }
43+ }
Original file line number Diff line number Diff line change 1+ import com.google.cloud.tools.jib.gradle.JibTask
12import java.time.LocalDateTime
23import java.time.format.DateTimeFormatter
34
6364}
6465
6566tasks {
67+ withType<JibTask >().configureEach {
68+ // Jib tasks access Task.project at execution time which is not compatible with configuration cache
69+ notCompatibleWithConfigurationCache(" Jib task accesses Task.project at execution time" )
70+ }
71+
6672 val springBootJar by configurations.creating {
6773 isCanBeConsumed = true
6874 isCanBeResolved = false
You can’t perform that action at this time.
0 commit comments