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_VERSIONstatic StringDETECT_JAVA_RUNTIME_VERSIONstatic SortedSet<Integer>JAVA_VERSIONS_LTS
-
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 StringcomputeJavaVersion(SourceType sourceType, String inputJavaVersion)static PathcreateOutputDirectory(String targetDirectory)static intdetermineBestJavaLtsVersion()static intdetermineBestJavaLtsVersion(int runtimeVersion)static voidhandleSpringConfiguration(Map<String,Object> values)static voidhandleSpringConfiguration(Map<String,Object> values, Set<String> extensions)static Set<String>sanitizeExtensions(Set<String> extensions)
-
-
-
Field Detail
-
DETECT_JAVA_RUNTIME_VERSION
public static final String DETECT_JAVA_RUNTIME_VERSION
- See Also:
- Constant Field Values
-
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
-
computeJavaVersion
public static String computeJavaVersion(SourceType sourceType, String inputJavaVersion)
-
determineBestJavaLtsVersion
public static int determineBestJavaLtsVersion()
-
determineBestJavaLtsVersion
public static int determineBestJavaLtsVersion(int runtimeVersion)
-
addSourceTypeExtensions
public static void addSourceTypeExtensions(Set<String> extensions, SourceType sourceType)
-
-