public void IncrementFlowVersion(DirectoryInfo projectDir, Dependency flow, Project project) { var pom = "pom.xml"; var flowName = flow.ArtifactId.ToLower(); var bpmn = flowName + ".bpmn"; var flowsJson = flowName + ".json"; if (File.Exists(Path.Combine(projectDir.FullName, pom))) { VersionIncrement.ReplaceFileContent(Path.Combine(projectDir.FullName, pom), c => PomReader.IncrementVersion(c)); } if (File.Exists(Path.Combine(projectDir.FullName, bpmn))) { VersionIncrement.ReplaceFileContent(Path.Combine(projectDir.FullName, bpmn), c => BpmnReader.IncrementVersion(c)); } if (File.Exists(Path.Combine(projectDir.FullName, flowsJson))) { VersionIncrement.ReplaceFileContent(Path.Combine(projectDir.FullName, flowsJson), c => ProcessFlowJsonReader.IncrementVersion(c)); } }