Class VaadinVersionUpdate
java.lang.Object
com.vaadin.copilot.plugins.vaadinversionupdate.VaadinVersionUpdate
Handles updating the Vaadin version in a project using Maven.
-
Constructor Summary
ConstructorsConstructorDescriptionVaadinVersionUpdate(Path projectFolder) Constructs aVaadinVersionUpdateinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateVaadinVersion(String newVersion, boolean preRelease) Updates the Vaadin version in the project's configuration files.
-
Constructor Details
-
VaadinVersionUpdate
Constructs aVaadinVersionUpdateinstance.- Parameters:
projectFolder- the project folder containing the pom.xml file
-
-
Method Details
-
updateVaadinVersion
Updates the Vaadin version in the project's configuration files.- Parameters:
newVersion- the new Vaadin version to setpreRelease-trueif version is preRelease,falseotherwise- Throws:
CopilotException- if the Vaadin BOM dependency is not found or if Gradle is used
-