com.github.leandroborgesferreira.dagcommand.DagCommandPlugin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dag-command Show documentation
Show all versions of dag-command Show documentation
Affected gradle modules by branch
package com.github.leandroborgesferreira.dagcommand
import com.github.leandroborgesferreira.dagcommand.adapter.parse
import com.github.leandroborgesferreira.dagcommand.extension.CommandExtension
import com.github.leandroborgesferreira.dagcommand.task.CommandTask
import com.github.leandroborgesferreira.dagcommand.utils.create
import com.github.leandroborgesferreira.dagcommand.utils.registerExt
import org.gradle.api.Action
import org.gradle.api.Plugin
import org.gradle.api.Project
private const val CONFIGURE_CLOJURE_NAME = "dagCommand"
private const val CONFIGURE_COMMAND_NAME = "dag-command"
class DagCommandPlugin : Plugin {
override fun apply(project: Project) {
val extension: CommandExtension = project.extensions.create(CONFIGURE_CLOJURE_NAME)
project.tasks.registerExt(CONFIGURE_COMMAND_NAME, Action {
it.config = extension.parse()
})
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy