Skip to content

Commit

Permalink
Cache "spring-doc-resources" archive between builds
Browse files Browse the repository at this point in the history
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 spring-projectsgh-23282
  • Loading branch information
bclozel committed Aug 21, 2019
1 parent e45a3f4 commit 0370101
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gradle/docs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0370101

Please sign in to comment.