This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new a27b2c02e Build/nit: cache output of `generatedMarkdownDocs` (#2967)
a27b2c02e is described below

commit a27b2c02ed8cb0247275944edfc47d011cf6db8f
Author: Robert Stupp <[email protected]>
AuthorDate: Tue Nov 4 15:44:19 2025 +0100

    Build/nit: cache output of `generatedMarkdownDocs` (#2967)
    
    `(Java)Exec` tasks are not cacheable by default, as annotated with 
`@DisableCachingByDefault`.
    Adding an `outputs.cacheIf { true }` enables caching on those tasks.
---
 tools/config-docs/site/build.gradle.kts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/config-docs/site/build.gradle.kts 
b/tools/config-docs/site/build.gradle.kts
index 6439a4b1e..e4caa9462 100644
--- a/tools/config-docs/site/build.gradle.kts
+++ b/tools/config-docs/site/build.gradle.kts
@@ -52,6 +52,7 @@ val generatedMarkdownDocs = 
tasks.register<JavaExec>("generatedMarkdownDocs") {
 
   mainClass = "org.apache.polaris.docs.generator.ReferenceConfigDocsGenerator"
 
+  outputs.cacheIf { true }
   outputs.dir(generatedMarkdownDocsDir)
   inputs.files(doclet)
   inputs.files(genProjects)

Reply via email to