js2d-gradle icon indicating copy to clipboard operation
js2d-gradle copied to clipboard

Js2pGenerationTask does not configure input path as relative

Open sergeykad opened this issue 8 months ago • 7 comments

Js2pGenerationTask is configured as @CacheableTask, but does not configure PathSensitivity as RELATIVE. As a result, while using distributed Gradle build cache with CI machine (e.g. Jenkins), cached results from CI cannot be reused on a local build due to the different absolute paths of the input files.

For example:

  • Jankins path: /home/jenkins/workspace/my-module/build/resources/main/json_schema
  • Local path: /home/me/best-project/my-module/build/resources/main/json_schema

Since absolute paths are not identical and the task does not use relative paths this scenario results in a cache miss. Reusing cache entries created by CI server is very desirable since it greatly speeds up local builds.

image

sergeykad avatar Jun 25 '24 14:06 sergeykad