public class ShadowJar
extends org.gradle.api.tasks.bundling.Jar
| Constructor and Description |
|---|
ShadowJar() |
| Modifier and Type | Method and Description |
|---|---|
ShadowJar |
append(String resourcePath)
Syntax sugar for merging service files in JARs
|
protected void |
copy() |
protected org.gradle.api.internal.file.copy.CopyAction |
createCopyAction() |
ShadowJar |
dependencies(org.gradle.api.Action<com.github.jengelman.gradle.plugins.shadow.internal.DependencyFilter> c)
Configure inclusion/exclusion of module & project dependencies into uber jar.
|
List<org.gradle.api.artifacts.Configuration> |
getConfigurations() |
com.github.jengelman.gradle.plugins.shadow.internal.DependencyFilter |
getDependencyFilter() |
org.gradle.api.file.FileCollection |
getIncludedDependencies() |
protected com.github.jengelman.gradle.plugins.shadow.internal.ZipCompressor |
getInternalCompressor() |
com.github.jengelman.gradle.plugins.shadow.tasks.InheritManifest |
getManifest() |
MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
List<com.github.jengelman.gradle.plugins.shadow.relocation.Relocator> |
getRelocators() |
protected org.gradle.api.tasks.util.PatternSet |
getRootPatternSet()
Utility method for assisting between changes in Gradle 1.12 and 2.x.
|
com.github.jengelman.gradle.plugins.shadow.ShadowStats |
getStats() |
List<com.github.jengelman.gradle.plugins.shadow.transformers.Transformer> |
getTransformers() |
Object |
invokeMethod(String name,
Object args) |
ShadowJar |
mergeGroovyExtensionModules()
Syntactic sugar for merging Groovy extension module descriptor files in JARs
|
ShadowJar |
mergeServiceFiles()
Syntactic sugar for merging service files in JARs.
|
ShadowJar |
mergeServiceFiles(org.gradle.api.Action<com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer> configureClosure)
Syntactic sugar for merging service files in JARs.
|
ShadowJar |
mergeServiceFiles(String rootPath)
Syntactic sugar for merging service files in JARs.
|
ShadowJar |
relocate(Class<? extends com.github.jengelman.gradle.plugins.shadow.relocation.Relocator> relocatorClass)
Add a relocator of the provided class.
|
<R extends com.github.jengelman.gradle.plugins.shadow.relocation.Relocator> |
relocate(Class<R> relocatorClass,
org.gradle.api.Action<R> configure)
Add a relocator of the provided class and configure.
|
ShadowJar |
relocate(com.github.jengelman.gradle.plugins.shadow.relocation.Relocator relocator)
Add a relocator instance.
|
ShadowJar |
relocate(String pattern,
String destination)
Add a class relocator that maps each class in the pattern to the provided destination.
|
ShadowJar |
relocate(String pattern,
String destination,
org.gradle.api.Action<com.github.jengelman.gradle.plugins.shadow.relocation.SimpleRelocator> configure)
Add a class relocator that maps each class in the pattern to the provided destination.
|
void |
setConfigurations(List<org.gradle.api.artifacts.Configuration> configurations) |
void |
setDependencyFilter(com.github.jengelman.gradle.plugins.shadow.internal.DependencyFilter filter) |
void |
setMetaClass(MetaClass metaClass) |
void |
setProperty(String property,
Object newValue) |
void |
setRelocators(List<com.github.jengelman.gradle.plugins.shadow.relocation.Relocator> relocators) |
void |
setTransformers(List<com.github.jengelman.gradle.plugins.shadow.transformers.Transformer> transformers) |
ShadowJar |
transform(Class<? extends com.github.jengelman.gradle.plugins.shadow.transformers.Transformer> clazz)
Add a Transformer instance for modifying JAR resources and configure.
|
<T extends com.github.jengelman.gradle.plugins.shadow.transformers.Transformer> |
transform(Class<T> clazz,
org.gradle.api.Action<T> c)
Add a Transformer instance for modifying JAR resources and configure.
|
ShadowJar |
transform(com.github.jengelman.gradle.plugins.shadow.transformers.Transformer transformer)
Add a preconfigured transformer instance.
|
getManifestContentCharset, getMetadataCharset, getMetaInf, manifest, metaInf, metaInf, setManifest, setManifestContentCharset, setMetadataCharsetgetCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64createCopyActionExecuter, getAppendix, getArchiveName, getArchivePath, getBaseName, getClassifier, getDestinationDir, getExtension, getVersion, into, into, into, isPreserveFileTimestamps, isReproducibleFileOrder, setAppendix, setArchiveName, setBaseName, setClassifier, setDestinationDir, setExtension, setPreserveFileTimestamps, setReproducibleFileOrder, setVersioncreateRootSpec, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileLookup, getFileMode, getFileResolver, getFileSystem, getFilteringCharset, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withconventionMapping, conventionMapping, getConventionMappingaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setShouldRunAfter, shouldRunAfter, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteachFile, eachFile, exclude, exclude, exclude, exclude, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDuplicatesStrategy, getFilteringCharset, getIncludeEmptyDirs, include, include, include, include, into, into, into, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDuplicatesStrategy, setExcludes, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withpublic com.github.jengelman.gradle.plugins.shadow.ShadowStats getStats()
public com.github.jengelman.gradle.plugins.shadow.tasks.InheritManifest getManifest()
getManifest in class org.gradle.jvm.tasks.Jarprotected org.gradle.api.internal.file.copy.CopyAction createCopyAction()
createCopyAction in class org.gradle.api.tasks.bundling.Zipprotected com.github.jengelman.gradle.plugins.shadow.internal.ZipCompressor getInternalCompressor()
protected void copy()
copy in class org.gradle.api.tasks.AbstractCopyTask@InputFiles @Optional public org.gradle.api.file.FileCollection getIncludedDependencies()
protected org.gradle.api.tasks.util.PatternSet getRootPatternSet()
public ShadowJar dependencies(org.gradle.api.Action<com.github.jengelman.gradle.plugins.shadow.internal.DependencyFilter> c)
c - the configuration of the filterpublic ShadowJar transform(Class<? extends com.github.jengelman.gradle.plugins.shadow.transformers.Transformer> clazz) throws InstantiationException, IllegalAccessException
clazz - the transformer to add. Must have a no-arg constructorInstantiationExceptionIllegalAccessExceptionpublic <T extends com.github.jengelman.gradle.plugins.shadow.transformers.Transformer> ShadowJar transform(Class<T> clazz, org.gradle.api.Action<T> c) throws InstantiationException, IllegalAccessException
clazz - the transformer class to add. Must have no-arg constructorc - the configuration for the transformerInstantiationExceptionIllegalAccessExceptionpublic ShadowJar transform(com.github.jengelman.gradle.plugins.shadow.transformers.Transformer transformer)
transformer - the transformer instance to addpublic ShadowJar mergeServiceFiles()
public ShadowJar mergeServiceFiles(String rootPath)
public ShadowJar mergeServiceFiles(org.gradle.api.Action<com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer> configureClosure)
public ShadowJar mergeGroovyExtensionModules()
public ShadowJar append(String resourcePath)
public ShadowJar relocate(String pattern, String destination)
pattern - the source pattern to relocatedestination - the destination packagepublic ShadowJar relocate(String pattern, String destination, org.gradle.api.Action<com.github.jengelman.gradle.plugins.shadow.relocation.SimpleRelocator> configure)
pattern - the source pattern to relocatedestination - the destination packageconfigure - the configuration of the relocatorpublic ShadowJar relocate(com.github.jengelman.gradle.plugins.shadow.relocation.Relocator relocator)
relocator - the relocator instance to addpublic ShadowJar relocate(Class<? extends com.github.jengelman.gradle.plugins.shadow.relocation.Relocator> relocatorClass) throws InstantiationException, IllegalAccessException
relocatorClass - the relocator class to add. Must have a no-arg constructor.InstantiationExceptionIllegalAccessExceptionpublic <R extends com.github.jengelman.gradle.plugins.shadow.relocation.Relocator> ShadowJar relocate(Class<R> relocatorClass, org.gradle.api.Action<R> configure) throws InstantiationException, IllegalAccessException
relocatorClass - the relocator class to add. Must have a no-arg constructorconfigure - the configuration for the relocatorInstantiationExceptionIllegalAccessExceptionpublic List<com.github.jengelman.gradle.plugins.shadow.transformers.Transformer> getTransformers()
public void setTransformers(List<com.github.jengelman.gradle.plugins.shadow.transformers.Transformer> transformers)
public List<com.github.jengelman.gradle.plugins.shadow.relocation.Relocator> getRelocators()
public void setRelocators(List<com.github.jengelman.gradle.plugins.shadow.relocation.Relocator> relocators)
@InputFiles @Optional public List<org.gradle.api.artifacts.Configuration> getConfigurations()
public void setConfigurations(List<org.gradle.api.artifacts.Configuration> configurations)
public com.github.jengelman.gradle.plugins.shadow.internal.DependencyFilter getDependencyFilter()
public void setDependencyFilter(com.github.jengelman.gradle.plugins.shadow.internal.DependencyFilter filter)
public void setProperty(String property, Object newValue)
setProperty in interface org.gradle.api.TasksetProperty in class org.gradle.api.internal.AbstractTaskpublic MetaClass getMetaClass()
public void setMetaClass(MetaClass metaClass)