ApacheNoticeResourceTransformer

open class ApacheNoticeResourceTransformer @Inject constructor(val objectFactory: ObjectFactory) : ResourceTransformer

Merges META-INF/NOTICE.TXT files.

Modified from org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer.java.

Author

John Engelman

Constructors

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

Properties

Link copied to clipboard
@get:Input
open val addHeader: Property<Boolean>
Link copied to clipboard
@get:Input
open val charsetName: Property<String>

The file encoding of the NOTICE file.

Link copied to clipboard
@get:Optional
@get:Input
open val copyright: Property<String>
Link copied to clipboard
@get:Input
open val inceptionYear: Property<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.

Link copied to clipboard
@get:Input
open val organizationName: Property<String>
Link copied to clipboard
@get:Input
open val organizationURL: Property<String>
Link copied to clipboard
@get:Input
open val preamble1: Property<String>
Link copied to clipboard
@get:Input
open val preamble2: Property<String>
Link copied to clipboard
@get:Input
open val preamble3: Property<String>
Link copied to clipboard
@get:Input
open val projectName: Property<String>

Functions

Link copied to clipboard
open override fun canTransformResource(element: FileTreeElement): Boolean
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)