This message was deleted.
# configuration-cache
s
This message was deleted.
m
This gives me a configutation-cache problem (cannot serialize ProcessResources):
Copy code
inputs.files(tasks.named('processResources')).withPropertyName('processResources outputs').withPathSensitivity(PathSensitivity.RELATIVE)
But this seems too verbose:
Copy code
dependsOn tasks.named('processResources')
	inputs.dir(sourceSets.main.output.resourcesDir).withPropertyName('processResources outputs').withPathSensitivity(PathSensitivity.RELATIVE)
Without the dependsOn I get the ususal warning about undeclared task dependencies.
The following also seems to work (at least there are no warnings), but is not exactly concise, either. Is that the best we can do?
Copy code
tasks.named('processResources').map {
	inputs.dir(it.outputs)
			.withPropertyName('processResources outputs')
			.withPathSensitivity(PathSensitivity.RELATIVE)
}