Package org.apache.maven.plugins.shade
Class ShadeRequest
java.lang.Object
org.apache.maven.plugins.shade.ShadeRequest
Parameter object used to pass multitude of args to Shader.shade()
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJars()booleanvoidsetFilters(List<Filter> filters) The filters.voidWhich jars to shade.voidsetRelocators(List<Relocator> relocators) The relocators.voidsetResourceTransformers(List<ResourceTransformer> resourceTransformers) The transformers.voidsetShadeSourcesContent(boolean shadeSourcesContent) When true, it will attempt to shade the contents of the java source files when creating the sources jar.voidsetUberJar(File uberJar) Output jar.
-
Constructor Details
-
ShadeRequest
public ShadeRequest()
-
-
Method Details
-
getJars
-
setJars
Which jars to shade.- Parameters:
jars- The jars.
-
getUberJar
-
setUberJar
Output jar.- Parameters:
uberJar- The ueberJar file.
-
getFilters
-
setFilters
The filters.- Parameters:
filters- The filters
-
getRelocators
-
setRelocators
The relocators.- Parameters:
relocators- The relocators.
-
getResourceTransformers
-
setResourceTransformers
The transformers.- Parameters:
resourceTransformers- List of resourceTransformers.
-
isShadeSourcesContent
public boolean isShadeSourcesContent() -
setShadeSourcesContent
public void setShadeSourcesContent(boolean shadeSourcesContent) When true, it will attempt to shade the contents of the java source files when creating the sources jar. When false, it will just relocate the java source files to the shaded paths, but will not modify the actual contents of the java source files.- Parameters:
shadeSourcesContent-trueorfalse.
-