gradle/gradle · error · InvalidUserDataException
Must specify a value for incremental input property '%s'.
Error message
Must specify a value for incremental input property '%s'.
What it means
Error "Must specify a value for incremental input property '%s'." thrown in gradle/gradle.
Source
Thrown at platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ResolveChangesStep.java:93
: nonIncremental(VALIDATION_FAILED, beforeExecution, incrementalInputProperties)
)
.orElseGet(() -> nonIncremental(NO_HISTORY, beforeExecution, incrementalInputProperties))
);
}
private static IncrementalInputProperties createIncrementalInputProperties(MutableUnitOfWork work) {
switch (work.getExecutionBehavior()) {
case NON_INCREMENTAL:
return IncrementalInputProperties.NONE;
case INCREMENTAL:
ImmutableBiMap.Builder<String, Object> builder = ImmutableBiMap.builder();
InputVisitor visitor = new InputVisitor() {
@Override
public void visitInputFileProperty(String propertyName, InputBehavior behavior, InputFileValueSupplier valueSupplier) {
if (behavior.shouldTrackChanges()) {
Object value = valueSupplier.getValue();
if (value == null) {
throw new InvalidUserDataException("Must specify a value for incremental input property '" + propertyName + "'.");
}
builder.put(propertyName, value);
}
}
};
work.visitImmutableInputs(visitor);
work.visitMutableInputs(visitor);
return new DefaultIncrementalInputProperties(builder.build());
default:
throw new AssertionError();
}
}
}
View on GitHub (pinned to 534f27719b)
Solutions
- An incremental input property has no value. Set a value for the named property before executing the task.
When it happens
Trigger: Thrown at platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ResolveChangesStep.java:93 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of gradle/gradle@534f27719b (2026-08-22).
Data as JSON: /api/errors/a061e5a8852e06a8.
Report an issue: GitHub.