
anttreelp.proguardservicesmapper.proguard-services-mapper-gradle.1.1.source-code.ProguardServicesMapperTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proguard-services-mapper-gradle Show documentation
Show all versions of proguard-services-mapper-gradle Show documentation
A utility to map Java services to their obfuscated counterparts.
The newest version!
package com.github.gianttreelp.proguardservicesmapper.gradle
import com.github.gianttreelp.proguardservicesmapper.common.mapServices
import org.gradle.api.DefaultTask
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.TaskAction
abstract class ProguardServicesMapperTask : DefaultTask() {
@get:InputFile
abstract val mappingFile: RegularFileProperty
@get:InputFile
abstract val inputFile: RegularFileProperty
@TaskAction
fun map() {
val mapping = this.mappingFile.get().asFile
val input = this.inputFile.get().asFile
mapServices(mapping.absolutePath, input.absolutePath)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy