diff --git a/src/main/java/com/andryuh/aar2jar/Aar2Jar.kt b/src/main/java/com/andryuh/aar2jar/Aar2Jar.kt index 7edf555..110f048 100644 --- a/src/main/java/com/andryuh/aar2jar/Aar2Jar.kt +++ b/src/main/java/com/andryuh/aar2jar/Aar2Jar.kt @@ -113,12 +113,12 @@ fun SourceSetContainer.withName(name: String, f: SourceSet.() -> Unit) { abstract class AarToJarTransform : TransformAction { - @PathSensitive(PathSensitivity.RELATIVE) - @InputArtifact - abstract fun aarProvider(): Provider + @get:PathSensitive(PathSensitivity.RELATIVE) + @get:InputArtifact + abstract val inputFile: Provider override fun transform(outputs: TransformOutputs) { - val input = aarProvider().get().asFile + val input = inputFile.get().asFile val outputFile = outputs.file(input.name.replace(".aar", ".jar")) ZipFile(input).use { zipFile ->