Package org.apache.maven.plugins.shade
Class ShadeRequest
- java.lang.Object
-
- org.apache.maven.plugins.shade.ShadeRequest
-
public class ShadeRequest extends java.lang.Object
Parameter object used to pass multitude of args to Shader.shade()- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ShadeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Filter>
getFilters()
java.util.Set<java.io.File>
getJars()
java.util.List<Relocator>
getRelocators()
java.util.List<ResourceTransformer>
getResourceTransformers()
java.io.File
getUberJar()
boolean
isShadeSourcesContent()
void
setFilters(java.util.List<Filter> filters)
The filters.void
setJars(java.util.Set<java.io.File> jars)
Which jars to shade.void
setRelocators(java.util.List<Relocator> relocators)
The relocators.void
setResourceTransformers(java.util.List<ResourceTransformer> resourceTransformers)
The transformers.void
setShadeSourcesContent(boolean shadeSourcesContent)
When true, it will attempt to shade the contents of the java source files when creating the sources jar.void
setUberJar(java.io.File uberJar)
Output jar.
-
-
-
Method Detail
-
getJars
public java.util.Set<java.io.File> getJars()
-
setJars
public void setJars(java.util.Set<java.io.File> jars)
Which jars to shade.- Parameters:
jars
- The jars.
-
getUberJar
public java.io.File getUberJar()
-
setUberJar
public void setUberJar(java.io.File uberJar)
Output jar.- Parameters:
uberJar
- The ueberJar file.
-
getFilters
public java.util.List<Filter> getFilters()
-
setFilters
public void setFilters(java.util.List<Filter> filters)
The filters.- Parameters:
filters
- The filters
-
getRelocators
public java.util.List<Relocator> getRelocators()
-
setRelocators
public void setRelocators(java.util.List<Relocator> relocators)
The relocators.- Parameters:
relocators
- The relocators.
-
getResourceTransformers
public java.util.List<ResourceTransformer> getResourceTransformers()
-
setResourceTransformers
public void setResourceTransformers(java.util.List<ResourceTransformer> resourceTransformers)
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
-true
orfalse
.
-
-