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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user