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

com.jdroid.android.googleplay.publisher.commons.AbstractTask.kt Maven / Gradle / Ivy

There is a newer version: 3.9.1
Show newest version
package com.jdroid.android.googleplay.publisher.commons

import com.jdroid.android.googleplay.publisher.GooglePlayPublisherPlugin
import com.jdroid.android.googleplay.publisher.GooglePlayPublisherPluginExtension
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.TaskAction

abstract class AbstractTask : DefaultTask() {

    @get:Internal
    protected lateinit var propertyResolver: PropertyResolver

    @TaskAction
    fun doExecute() {
        propertyResolver = PropertyResolver(project)
        onExecute()
    }

    @Internal
    protected fun getExtension(): GooglePlayPublisherPluginExtension {
        return project.extensions.getByName(GooglePlayPublisherPlugin.EXTENSION_NAME) as GooglePlayPublisherPluginExtension
    }

    protected abstract fun onExecute()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy