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

gins.gradle-plugin-development.1.6.source-code.DependencyHandlerExtensions.kt Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
import dev.gradleplugins.GradlePluginDevelopmentDependencyExtension
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.dsl.DependencyHandler
import org.gradle.api.plugins.ExtensionAware

fun DependencyHandler.gradleApi(version: String): Dependency = ExtensionAware::class.java.cast(this).extensions.getByType(GradlePluginDevelopmentDependencyExtension::class.java).gradleApi(version)

fun DependencyHandler.gradleFixtures(): Dependency = ExtensionAware::class.java.cast(this).extensions.getByType(GradlePluginDevelopmentDependencyExtension::class.java).gradleFixtures()

fun DependencyHandler.gradleRunnerKit(): Dependency = ExtensionAware::class.java.cast(this).extensions.getByType(GradlePluginDevelopmentDependencyExtension::class.java).gradleRunnerKit()

fun DependencyHandler.gradleTestKit(version: String): Dependency = ExtensionAware::class.java.cast(this).extensions.getByType(GradlePluginDevelopmentDependencyExtension::class.java).gradleTestKit(version)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy