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

main.name.remal.gradle_plugins.plugins.dependencies.ConfigurationExtensionsPlugin.kt Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
package name.remal.gradle_plugins.plugins.dependencies

import name.remal.gradle_plugins.dsl.BaseReflectiveProjectPlugin
import name.remal.gradle_plugins.dsl.Plugin
import name.remal.gradle_plugins.dsl.PluginAction
import name.remal.gradle_plugins.dsl.extensions.addPlugin
import name.remal.gradle_plugins.dsl.extensions.convention
import org.gradle.api.artifacts.ConfigurationContainer

@Plugin(
    id = "name.remal.configuration-extensions",
    description = "Plugin that adds some useful extensions to all configurations.",
    tags = ["configuration"]
)
class ConfigurationExtensionsPlugin : BaseReflectiveProjectPlugin() {

    @PluginAction
    fun ConfigurationContainer.addExtensions() {
        all { conf ->
            conf.convention.addPlugin(ConfigurationExtension(conf))
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy