private static void defineVariables(Map<TaskVariable, VariableDef<JavaExtension>> varMap) {
addVariable(varMap, SOURCE_SET_NAME, new ValueGetter<JavaExtension>() {
@Override
public VariableValue getValue(TaskVariableMap variables, JavaExtension project, Lookup actionContext) {
return new VariableValue(getSourceSetName(project, actionContext));
}
});
addVariable(varMap, SOURCE_SET_NAME_CAPITAL, new ValueGetter<JavaExtension>() {
@Override
public VariableValue getValue(TaskVariableMap variables, JavaExtension project, Lookup actionContext) {
return getCapitalized(variables, SOURCE_SET_NAME);
}
});
addVariable(varMap, TEST_TASK_NAME, new ValueGetter<JavaExtension>() {
@Override
public VariableValue getValue(TaskVariableMap variables, JavaExtension project, Lookup actionContext) {
return new VariableValue(getTestTaskName(variables, project, actionContext));
}
});
addVariable(varMap, TEST_TASK_NAME_CAPITAL, new ValueGetter<JavaExtension>() {
@Override