Interface ExtensionManager
-
- All Known Implementing Classes:
AbstractGroovyGradleBuildFile,BuildFile,GroovyGradleBuildFile,KotlinGradleBuildFile,MavenBuildFile,MavenProjectBuildFile
public interface ExtensionManagerThis interface defines a high level way of managing (read/write) extensions in any QuarkusProject
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExtensionManager.InstallResultstatic classExtensionManager.UninstallResult
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BuildToolgetBuildTool()Collection<io.quarkus.maven.dependency.ArtifactCoords>getInstalled()Read the build file(s) to get the list of installed extensions in this Quarkus project.Collection<io.quarkus.maven.dependency.ArtifactCoords>getInstalledPlatforms()Returns the list of the imported platforms in the current project.ExtensionManager.InstallResultinstall(ExtensionInstallPlan request)This is going to install/add all the specified extensions to the project build file(s).ExtensionManager.InstallResultinstall(Collection<io.quarkus.maven.dependency.ArtifactCoords> coords)This is going to install/add all the specified extensions to the project build file(s).default booleanisInstalled(io.quarkus.maven.dependency.ArtifactKey key)Read build file(s) to check if an extension is installed in this Quarkus project.ExtensionManager.UninstallResultuninstall(Collection<io.quarkus.maven.dependency.ArtifactKey> keys)This is going to uninstall/remove all the specified extensions from the project build file(s).
-
-
-
Method Detail
-
getInstalledPlatforms
Collection<io.quarkus.maven.dependency.ArtifactCoords> getInstalledPlatforms() throws IOException
Returns the list of the imported platforms in the current project.- Returns:
- current list of imported platforms
- Throws:
IOException- if a problem occurs while reading the project build file(s)
-
getInstalled
Collection<io.quarkus.maven.dependency.ArtifactCoords> getInstalled() throws IOException
Read the build file(s) to get the list of installed extensions in this Quarkus project.- Returns:
- The list of
ArtifactCoordsinstalled in the project build file(s). - Throws:
IOException- if a problem occurs while reading the project build file(s)
-
isInstalled
default boolean isInstalled(io.quarkus.maven.dependency.ArtifactKey key) throws IOExceptionRead build file(s) to check if an extension is installed in this Quarkus project.- Parameters:
key- theArtifactKeyof the extension to check- Returns:
- true if it's installed
- Throws:
IOException- if a problem occurs while reading the project build file(s)
-
install
ExtensionManager.InstallResult install(Collection<io.quarkus.maven.dependency.ArtifactCoords> coords) throws IOException
This is going to install/add all the specified extensions to the project build file(s).- Extensions which are already installed will ALWAYS be skipped whatever the specified version - The provided version will be used if it wasn't already installed
- Parameters:
coords- the list ofArtifactCoordsfor the extensions to install- Returns:
- the
ExtensionManager.InstallResult - Throws:
IOException- if a problem occurs while reading/writing the project build file(s)
-
install
ExtensionManager.InstallResult install(ExtensionInstallPlan request) throws IOException
This is going to install/add all the specified extensions to the project build file(s).- If the project Quarkus platform bom is not defined, an
IllegalStateExceptionwill be thrown - Extensions which are already installed will ALWAYS be skipped whatever the specified version - The provided version will be used if wasn't already installed- Parameters:
request- the list ofArtifactCoordsfor the extensions to install- Returns:
- the
ExtensionManager.InstallResult - Throws:
IOException- if a problem occurs while reading/writing the project build file(s)
-
uninstall
ExtensionManager.UninstallResult uninstall(Collection<io.quarkus.maven.dependency.ArtifactKey> keys) throws IOException
This is going to uninstall/remove all the specified extensions from the project build file(s). This is ignoring the version- Parameters:
keys- the set ofArtifactKeyfor the extensions to uninstall- Returns:
- the
ExtensionManager.InstallResult - Throws:
IOException- if a problem occurs while reading/writing the project build file(s)
-
-