Skip to content

Commit

Permalink
chore: enable configuration cache when building project.
Browse files Browse the repository at this point in the history
  • Loading branch information
autonomousapps committed Dec 27, 2023
1 parent 6454f66 commit 7c33419
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 3 additions & 1 deletion testkit/gradle-testkit-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Jar>("javadocJar") {
from(dokkaJavadoc)
Expand Down
4 changes: 3 additions & 1 deletion testkit/gradle-testkit-support/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Jar>("javadocJar") {
from(dokkaJavadoc)
Expand Down
4 changes: 3 additions & 1 deletion testkit/gradle-testkit-truth/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Jar>("javadocJar") {
from(dokkaJavadoc)
Expand Down
2 changes: 1 addition & 1 deletion testkit/gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7c33419

Please sign in to comment.