Class VaadinVersionUpdate

java.lang.Object
com.vaadin.copilot.plugins.vaadinversionupdate.VaadinVersionUpdate

public class VaadinVersionUpdate extends Object
Handles updating the Vaadin version in a project using Maven.
  • Constructor Details

    • VaadinVersionUpdate

      public VaadinVersionUpdate(Path projectFolder)
      Constructs a VaadinVersionUpdate instance.
      Parameters:
      projectFolder - the project folder containing the pom.xml file
  • Method Details

    • updateVaadinVersion

      public void updateVaadinVersion(String newVersion, boolean preRelease)
      Updates the Vaadin version in the project's configuration files.
      Parameters:
      newVersion - the new Vaadin version to set
      preRelease - true if version is preRelease, false otherwise
      Throws:
      CopilotException - if the Vaadin BOM dependency is not found or if Gradle is used