All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.appmetrica.gradle.aarcheck.tasks.PomDump.kt Maven / Gradle / Ivy

The newest version!
package io.appmetrica.gradle.aarcheck.tasks

import org.gradle.api.DefaultTask
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.OutputFile
import org.gradle.api.tasks.TaskAction

abstract class PomDump : DefaultTask() {
    @get:InputFile
    abstract val pomFile: RegularFileProperty

    @get:OutputFile
    abstract val pomDumpFile: RegularFileProperty

    @TaskAction
    fun dump() {
        logger.info("Dump pom file from ${pomFile.get()}")
        pomFile.get().asFile.copyTo(pomDumpFile.get().asFile, overwrite = true)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy