the japiCmpTask is not relocatable when using rule arguments with absolute paths.
Here is an example in the micronaut-build project.
The cost of this with a relocated build is 1mn23s on the micronaut-core build
Here is the build scan comparison illustrating the volatile inputs
Fix
This PR adds a rule constructor which allow to add a normalized version of the arguments which will be used as rule inputs.
The consumer would then call this constructor with normalized are arguments, here is how in the micronaut-build:
Issue
the
japiCmpTask
is not relocatable when using rule arguments with absolute paths. Here is an example in themicronaut-build
project.The cost of this with a relocated build is 1mn23s on the
micronaut-core
buildHere is the build scan comparison illustrating the volatile inputs
Fix
This PR adds a rule constructor which allow to add a normalized version of the arguments which will be used as rule inputs. The consumer would then call this constructor with normalized are arguments, here is how in the micronaut-build:
Question
This PR only addresses the
ViolationTransformer
rule type, do all subtypes ofRuleConfiguration
have to be addressed the same way?