ManifestAppenderTransformer

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.

Modified from ManifestResourceTransformer.

Author

Chris Rankin

Constructors

Link copied to clipboard
@Inject
constructor(objectFactory: ObjectFactory)

Properties

Link copied to clipboard
@get:Input
open val attributes: SetProperty<Pair<String, Comparable<*>>>
Link copied to clipboard
@get:Internal
open override val name: String
Link copied to clipboard
override val objectFactory: ObjectFactory

This is used for creating Gradle's lazy properties in the subclass, Shadow's build-in transformers that depend on this have been injected via ObjectFactory.newInstance. Custom transformers should implement or inject this property if they need to access it.

Functions

Link copied to clipboard
open fun append(name: String, value: Comparable<*>)
Link copied to clipboard
open override fun canTransformResource(element: FileTreeElement): Boolean
Link copied to clipboard
@Internal
open override fun getName(): String
Link copied to clipboard
open override fun hasTransformedResource(): Boolean
Link copied to clipboard
open override fun modifyOutputStream(os: ZipOutputStream, preserveFileTimestamps: Boolean)
Link copied to clipboard
open override fun transform(context: TransformerContext)