Interface ProjectDescription
- All Known Implementing Classes:
MutableProjectDescription
public interface ProjectDescription
Description of a project to generate.
- Author:
- Andy Wilkinson, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptiondefault ProjectDescriptionCreate a full copy of this description so that any additional changes made on this instance are not reflected on the returned copy.@Nullable StringReturn the name of the application as a standard Java identifier.@Nullable StringReturn the buildartifactId.@Nullable StringReturn the base directory of the project ornullto use the root directory.@Nullable BuildSystemReturn theBuildSystemto use.@Nullable ConfigurationFileFormatReturn theConfigurationFileFormatof the project.@Nullable StringReturn a human-readable description of the project.@Nullable StringReturn the buildgroupId.@Nullable LanguageReturn the primaryLanguageof the project.@Nullable StringgetName()Return a simple name for the project.@Nullable StringReturn the root package name of the project.@Nullable PackagingReturn the buildPackagingto use.@Nullable VersionReturn the requested platformVersion.Return an immutable mapping of requesteddependencies.@Nullable StringReturn the version of the project.
-
Method Details
-
createCopy
Create a full copy of this description so that any additional changes made on this instance are not reflected on the returned copy.- Returns:
- a clone of this instance
-
getRequestedDependencies
Map<String, Dependency> getRequestedDependencies()Return an immutable mapping of requesteddependencies.- Returns:
- the requested dependencies
-
getPlatformVersion
-
getBuildSystem
@Nullable BuildSystem getBuildSystem()Return theBuildSystemto use.- Returns:
- the build system or
null
-
getPackaging
-
getLanguage
-
getConfigurationFileFormat
@Nullable ConfigurationFileFormat getConfigurationFileFormat()Return theConfigurationFileFormatof the project.- Returns:
- the configuration file format or
null
-
getGroupId
-
getArtifactId
-
getVersion
-
getName
@Nullable String getName()Return a simple name for the project.- Returns:
- the name of the project or
null
-
getDescription
@Nullable String getDescription()Return a human-readable description of the project.- Returns:
- the description of the project or
null
-
getApplicationName
@Nullable String getApplicationName()Return the name of the application as a standard Java identifier.- Returns:
- the name of the application or
null
-
getPackageName
@Nullable String getPackageName()Return the root package name of the project.- Returns:
- the package name or
null
-
getBaseDirectory
@Nullable String getBaseDirectory()Return the base directory of the project ornullto use the root directory.- Returns:
- the base directory
-