sh.christian.aaraar.gradle.PackageJarTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin Show documentation
Show all versions of gradle-plugin Show documentation
A plugin for creating a merged aar file.
The newest version!
package sh.christian.aaraar.gradle
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.CacheableTask
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.OutputFile
import org.gradle.api.tasks.PathSensitive
import org.gradle.api.tasks.PathSensitivity
import sh.christian.aaraar.Environment
@CacheableTask
abstract class PackageJarTask : PackageArchiveTask() {
@get:InputFile
@get:PathSensitive(PathSensitivity.RELATIVE)
val inputJar: RegularFileProperty get() = inputArchive
@get:OutputFile
val outputJar: RegularFileProperty get() = outputArchive
final override fun environment(): Environment {
return Environment(
androidAaptIgnore = "",
keepClassesMetaFiles = keepMetaFiles.get(),
)
}
}