Package-level declarations

Types

Link copied to clipboard
open class ApacheLicenseResourceTransformer @JvmOverloads constructor(patternSet: PatternSet = PatternSet() .apply { isCaseSensitive = false } .include(LICENSE_PATH, LICENSE_TXT_PATH, LICENSE_MD_PATH)) : PatternFilterableResourceTransformer

Prevents duplicate copies of the license.

Link copied to clipboard
open class ApacheNoticeResourceTransformer(val objectFactory: ObjectFactory, patternSet: PatternSet) : PatternFilterableResourceTransformer

Merges META-INF/NOTICE.TXT files.

Link copied to clipboard
open class AppendingTransformer @Inject constructor(val objectFactory: ObjectFactory) : ResourceTransformer

A resource processor that appends content for a resource, separated by a newline.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class CacheableTransformer

Marks that a given instance of ResourceTransformer is compatible with the Gradle build cache. In other words, it has its appropriate inputs annotated so that Gradle can consider them when determining the cache key.

Link copied to clipboard

A resource processor that aggregates plexus components.xml files.

Link copied to clipboard
open class DeduplicatingResourceTransformer(val objectFactory: ObjectFactory, patternSet: PatternSet) : PatternFilterableResourceTransformer

Transformer to include files with identical content only once in the shadowed JAR.

Link copied to clipboard
open class DontIncludeResourceTransformer @Inject constructor(val objectFactory: ObjectFactory) : ResourceTransformer

A resource processor that prevents the inclusion of an arbitrary resource into the shaded JAR.

Link copied to clipboard

Aggregate Apache Groovy extension modules descriptors.

Link copied to clipboard
open class IncludeResourceTransformer @Inject constructor(val objectFactory: ObjectFactory) : ResourceTransformer

A resource processor that allows the addition of an arbitrary file content into the shaded JAR.

Link copied to clipboard
open class ManifestAppenderTransformer @Inject constructor(val objectFactory: ObjectFactory) : ResourceTransformer

A resource processor that can append arbitrary attributes to the first MANIFEST.MF that is found in the set of JARs being processed. The attributes are appended in the specified order, and duplicates are allowed.

Link copied to clipboard
open class ManifestResourceTransformer @Inject constructor(val objectFactory: ObjectFactory) : ResourceTransformer

A resource processor that allows the arbitrary addition of attributes to the first MANIFEST.MF that is found in the set of JARs being processed, or to a newly created manifest for the shaded JAR.

Link copied to clipboard
open class MergeLicenseResourceTransformer(val objectFactory: ObjectFactory, patternSet: PatternSet) : PatternFilterableResourceTransformer

Generates a license file using the configured license text source.

Link copied to clipboard
abstract class PatternFilterableResourceTransformer(val patternSet: PatternSet) : ResourceTransformer, PatternFilterable

A base class for resource transformers that support pattern filtering.

Link copied to clipboard
open class PreserveFirstFoundResourceTransformer(val objectFactory: ObjectFactory, patternSet: PatternSet) : PatternFilterableResourceTransformer

A resource processor that preserves the first resource matched and excludes all others.

Link copied to clipboard
open class PropertiesFileTransformer @Inject constructor(val objectFactory: ObjectFactory) : ResourceTransformer

Resources transformer that merges Properties files.

Link copied to clipboard
open class ServiceFileTransformer @JvmOverloads constructor(patternSet: PatternSet = PatternSet().include(SERVICES_PATTERN).exclude(PATH_LEGACY_GROOVY_EXTENSION_MODULE_DESCRIPTOR)) : PatternFilterableResourceTransformer

Resources transformer that appends entries in META-INF/services resources into a single resource. For example, if there are several META-INF/services/org.apache.maven.project.ProjectBuilder resources spread across many JARs the individual entries will all be concatenated into a single META-INF/services/org.apache.maven.project.ProjectBuilder resource packaged into the resultant JAR produced by the shading process.

Link copied to clipboard
data class TransformerContext @JvmOverloads constructor(val path: String, val inputStream: InputStream, val relocators: Set<Relocator> = emptySet())
Link copied to clipboard
open class XmlAppendingTransformer @Inject constructor(val objectFactory: ObjectFactory) : ResourceTransformer

Appends multiple occurrences of some XML file.