From ef891a9a4df465078161b7e4953d857f02e6d034 Mon Sep 17 00:00:00 2001 From: Tony Robalik Date: Wed, 27 Dec 2023 00:23:08 -0800 Subject: [PATCH] chore: enable configuration cache when building project. --- gradle.properties | 2 +- testkit/gradle-testkit-plugin/build.gradle.kts | 4 +++- testkit/gradle-testkit-support/build.gradle.kts | 4 +++- testkit/gradle-testkit-truth/build.gradle.kts | 4 +++- testkit/gradle.properties | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index 0aa27787f..5d33f8927 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=1024m org.gradle.caching=true org.gradle.parallel=true -#org.gradle.configuration-cache=true +org.gradle.configuration-cache=true VERSION=1.28.1-SNAPSHOT diff --git a/testkit/gradle-testkit-plugin/build.gradle.kts b/testkit/gradle-testkit-plugin/build.gradle.kts index 7250b780e..649d61549 100644 --- a/testkit/gradle-testkit-plugin/build.gradle.kts +++ b/testkit/gradle-testkit-plugin/build.gradle.kts @@ -46,7 +46,9 @@ kotlin { explicitApi() } -val dokkaJavadoc = tasks.named("dokkaJavadoc") +val dokkaJavadoc = tasks.named("dokkaJavadoc") { + notCompatibleWithConfigurationCache("Uses 'project' at execution time") +} // This task is added by Gradle when we use java.withJavadocJar() tasks.named("javadocJar") { from(dokkaJavadoc) diff --git a/testkit/gradle-testkit-support/build.gradle.kts b/testkit/gradle-testkit-support/build.gradle.kts index 295cccff5..bc7ad1517 100644 --- a/testkit/gradle-testkit-support/build.gradle.kts +++ b/testkit/gradle-testkit-support/build.gradle.kts @@ -22,7 +22,9 @@ kotlin { explicitApi() } -val dokkaJavadoc = tasks.named("dokkaJavadoc") +val dokkaJavadoc = tasks.named("dokkaJavadoc") { + notCompatibleWithConfigurationCache("Uses 'project' at execution time") +} // This task is added by Gradle when we use java.withJavadocJar() tasks.named("javadocJar") { from(dokkaJavadoc) diff --git a/testkit/gradle-testkit-truth/build.gradle.kts b/testkit/gradle-testkit-truth/build.gradle.kts index d20a0bdb9..81dcc84fa 100644 --- a/testkit/gradle-testkit-truth/build.gradle.kts +++ b/testkit/gradle-testkit-truth/build.gradle.kts @@ -21,7 +21,9 @@ kotlin { explicitApi() } -val dokkaJavadoc = tasks.named("dokkaJavadoc") +val dokkaJavadoc = tasks.named("dokkaJavadoc") { + notCompatibleWithConfigurationCache("Uses 'project' at execution time") +} // This task is added by Gradle when we use java.withJavadocJar() tasks.named("javadocJar") { from(dokkaJavadoc) diff --git a/testkit/gradle.properties b/testkit/gradle.properties index c0b7866bb..e1e9ed4f8 100644 --- a/testkit/gradle.properties +++ b/testkit/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=512m org.gradle.caching=true org.gradle.parallel=true -#org.gradle.configuration-cache=true +org.gradle.configuration-cache=true dependency.analysis.autoapply=false dependency.analysis.print.build.health=true