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
This commit is contained in:
Brian Clozel
2019-08-21 15:38:16 +02:00
parent e45a3f4738
commit 03701018c6

View File

@@ -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) {