From 03701018c60ef67f406c52c6728e4f2eaccead50 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Wed, 21 Aug 2019 15:38:16 +0200 Subject: [PATCH] Cache "spring-doc-resources" archive between builds This commit configures the Gradle Download plugin that's used a build step when generating the reference documentation. Here we're making sure that the task is caching and reusing the resource if it's been downloaded already. See gh-23282 --- gradle/docs.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gradle/docs.gradle b/gradle/docs.gradle index 78433d7679..43fdc6249a 100644 --- a/gradle/docs.gradle +++ b/gradle/docs.gradle @@ -84,6 +84,8 @@ task downloadResources(type: Download) { src "https://repo.spring.io/release/io/spring/docresources/" + "spring-doc-resources/$version/spring-doc-resources-${version}.zip" dest project.file("$buildDir/docs/spring-doc-resources.zip") + onlyIfModified true + useETag "all" } task extractDocResources(type: Copy, dependsOn: downloadResources) {