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

MetaInfStripTransform
Link copied to clipboard
fun MetaInfStripTransform()

Types

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

Functions

getParameters
Link copied to clipboard
@Inject
abstract fun getParameters(): MetaInfStripTransform.Parameters
transform
Link copied to clipboard
open override fun transform(outputs: TransformOutputs)

Properties

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