Browse Source

Allow genJaxb's output to be cached when checkout locations differ

Previously, the genJaxb task's input files were compared using
absolute paths. This would result in a cache miss for two builds
with identical files contents and different root directories.

This commit updates the path sensitivity of the input to be relative
to the build's root directory, thereby allowing caching to work
irrespective of the source checkout location.

Closes gh-23704
pull/1863/head
Andy Wilkinson 5 years ago committed by Sam Brannen
parent
commit
00bad3dce0
  1. 2
      spring-oxm/spring-oxm.gradle

2
spring-oxm/spring-oxm.gradle

@ -22,7 +22,7 @@ task genJaxb { @@ -22,7 +22,7 @@ task genJaxb {
ext.sourcesDir = "${genSourcesDir}/jaxb"
ext.classesDir = "${buildDir}/classes/jaxb"
inputs.files flightSchema
inputs.files(flightSchema).withPathSensitivity(PathSensitivity.RELATIVE)
outputs.dir classesDir
doLast() {

Loading…
Cancel
Save