Skip to content

Js2pGenerationTask does not configure input path as relative #960

Open
@sergeykad

Description

@sergeykad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions