Class ApisConfiguration
java.lang.Object
org.apache.sling.feature.maven.mojos.apis.ApisConfiguration
public class ApisConfiguration extends Object
Configuration for creating the api jars.
The configuration can be controlled by a JSON extension:
{
"license-report" : "PATH",
"license-header" : "STRING or STRING ARRAY",
"license-footer" : "STRING or STRING ARRAY",
"license-defaults" : ["PATTERN", "PATTERN"],
"javadoc-links" : ["LINK", "LINK"],
"javadoc-classpath-removals" : ["LINK", "LINK"],
"javadoc-classpath-highest-versions" : ["LINK", "LINK"],
"javadoc-classpath-tops" : ["LINK", "LINK"],
"javadoc-source-level" : "STRING",
"api-version" : "STRING",
"bundle-resource-folders" : ["STRING", "STRING"],
"bundle-resources" : ["STRING", "STRING"],
"region-mapping" : {
"REGION" : "MAPPED_NAME"
},
"classifier-mapping" : {
"CLASSIFIER" : "MAPPED_NAME"
},
"manifest-entries" : {
"key" : "value"
},
"javadoc-extensions" : [
"[[REGION_NAME]:][COMMA_SEPARATED_LIST_OF_ARTIFACT_EXTENSIONS"
]
}
-
Constructor Summary
Constructors Constructor Description ApisConfiguration(org.apache.sling.feature.Feature feature) -
Method Summary
-
Constructor Details
-
ApisConfiguration
public ApisConfiguration(org.apache.sling.feature.Feature feature) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-
Method Details
-
logConfiguration
public void logConfiguration(org.apache.maven.plugin.logging.Log log) -
getBundleResources
-
getJavadocLinks
-
getJavadocSourceLevel
-
getApiVersion
-
getApiName
-
getBundleResourceFolders
-
getLicenseReport
-
getLicenseDefaults
-
getLicenseReportHeader
-
getManifestEntries
-
getJavadocClasspathRemovals
-
getJavadocClasspathHighestVersions
-
getJavadocClasspathTops
-
mapApiRegionName
Apply region name mapping if configured- Parameters:
regionName- The region name- Returns:
- The mapped name or the original name
-
mapApiClassifier
Apply classifier mapping if configured- Parameters:
classifier- The classifier- Returns:
- The mapped classifier or the original classifier
-
getLicenseDefault
-
setLicenseDefaults
public void setLicenseDefaults(List<String> licenseDefaultsFromProjcect) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setLicenseReport
-
setLicenseReportHeader
-
setJavadocLinks
-
setJavadocClasspathRemovals
-
setJavadocClasspathHighestVersions
-
setJavadocClasspathTops
-
setJavadocSourceLevel
-
setApiVersion
-
setBundleResources
-
setBundleResourceFolders
-
setRegionMappings
-
setClassifierMappings
-
setManifestEntries
-
setEnabledToggles
-
getEnabledToggles
-
setAdditionalJavadocExtensions
Add the additional extensions for javadoc generation- Parameters:
javadocAdditionalExtensions- A list of strings
-
getAdditionalJavadocExtensions
Get the map for additional javadoc extensions for a region- Parameters:
regionName- the region- Returns:
- The set of extension names, might be empty
-
isUseApiDependencies
public boolean isUseApiDependencies()- Returns:
- the useApiDependencies
-
setUseApiDependencies
public void setUseApiDependencies(boolean flag)- Parameters:
flag- The value for useApiDependencies
-
isUseApiDependenciesForJavadoc
public boolean isUseApiDependenciesForJavadoc()- Returns:
- the useApiDependenciesForJavadoc
-
setUseApiDependenciesForJavadoc
public void setUseApiDependenciesForJavadoc(boolean flag)- Parameters:
flag- The value for useApiDependenciesForJavadoc
-
isGenerateJavadocForAllApi
public boolean isGenerateJavadocForAllApi()- Returns:
- the generateJavadocForAllApi
-
setGenerateJavadocForAllApi
public void setGenerateJavadocForAllApi(boolean generateJavadocForAllApi)- Parameters:
generateJavadocForAllApi- the generateJavadocForAllApi to set
-
getDependencyRepositories
-
setDependencyRepositories
Set the dependency repositories- Parameters:
list- Comma separated list ornull
-
setApiName
-