Class LastReleasePomFileReader


  • public class LastReleasePomFileReader
    extends Object
    This class reads the pom file of the latest previous release on the current branch.
    • Constructor Detail

      • LastReleasePomFileReader

        public LastReleasePomFileReader()
    • Method Detail

      • readLatestReleasesPomFile

        public Optional<String> readLatestReleasesPomFile​(Path projectDirectory,
                                                          String currentVersion)
        Read the content of the pom.xml file from the previous release on the current branch.
        Parameters:
        projectDirectory - projects root directory
        currentVersion - current release version
        Returns:
        content of the pom file