MetaInfStripTransform

abstract class MetaInfStripTransform : TransformAction<MetaInfStripTransform.Parameters>

Gradle's TransformAction that strips out unsupported Java classes from resources/META-INF/versions folder of a jar. This is the case for Multi-Release JARs, when a single jar contains classes for different Java versions.

For Android it may have bad consequences, as the min supported Java version is 11 at the moment, and this can cause incompatibilities, if AGP or other plugins erroneously consider .class files under the META-INF folder during build-time transformations/instrumentation.

The minimum supported Java version of the latest AGP is 11 -> https://developer.android.com/studio/releases/gradle-plugin#7-1-0

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Parameters : TransformParameters

Functions

Link copied to clipboard
Link copied to clipboard
open override fun transform(outputs: TransformOutputs)

Properties

Link copied to clipboard
@get:PathSensitive(value = PathSensitivity.RELATIVE)
@get:InputArtifact
abstract val inputArtifact: Provider<FileSystemLocation>