Package io.quarkus.devtools.commands
Class CreateProjectHelper
- java.lang.Object
-
- io.quarkus.devtools.commands.CreateProjectHelper
-
public class CreateProjectHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ARTIFACT_IDstatic StringDEFAULT_GROUP_IDstatic StringDEFAULT_VERSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddSourceTypeExtensions(Set<String> extensions, SourceType sourceType)static StringcheckClassName(String name)static StringcheckPackageName(String name)static PathcheckProjectRootPath(Path outputPath, String name)static ExtensionCatalogcompleteCatalog(ExtensionCatalog catalog, Collection<String> extensions, io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver mvn)This method checks whether extensions to be added are specified using complete artifact coordinates, in which case they are resolved and added to the catalog so that their codestarts are picked up by the code generator.static ExtensionCatalogcompleteCatalogWithCoords(ExtensionCatalog catalog, Collection<io.quarkus.maven.dependency.ArtifactCoords> extensions, io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver mvn)static PathcreateOutputDirectory(String targetDirectory)static voidhandleSpringConfiguration(Map<String,Object> values)static voidhandleSpringConfiguration(Map<String,Object> values, Set<String> extensions)static Set<String>sanitizeExtensions(Set<String> extensions)
-
-
-
Field Detail
-
DEFAULT_GROUP_ID
public static final String DEFAULT_GROUP_ID
- See Also:
- Constant Field Values
-
DEFAULT_ARTIFACT_ID
public static final String DEFAULT_ARTIFACT_ID
- See Also:
- Constant Field Values
-
DEFAULT_VERSION
public static final String DEFAULT_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
completeCatalogWithCoords
public static ExtensionCatalog completeCatalogWithCoords(ExtensionCatalog catalog, Collection<io.quarkus.maven.dependency.ArtifactCoords> extensions, io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver mvn)
- Parameters:
catalog- original extension catalogextensions- extra extensions to add to the catalogmvn- Maven artifact resolver- Returns:
- complete extension catalog
- Throws:
io.quarkus.bootstrap.resolver.maven.BootstrapMavenException- in case of a failure to resolve extensions requested by the user
-
completeCatalog
public static ExtensionCatalog completeCatalog(ExtensionCatalog catalog, Collection<String> extensions, io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver mvn)
This method checks whether extensions to be added are specified using complete artifact coordinates, in which case they are resolved and added to the catalog so that their codestarts are picked up by the code generator.- Parameters:
catalog- original extension catalogextensions- extra extensions to add to the catalogmvn- Maven artifact resolver- Returns:
- complete extension catalog
- Throws:
io.quarkus.bootstrap.resolver.maven.BootstrapMavenException- in case of a failure to resolve extensions requested by the user
-
addSourceTypeExtensions
public static void addSourceTypeExtensions(Set<String> extensions, SourceType sourceType)
-
-