name.remal.gradle_plugins.toolkit.build_logic.gradle-plugin.gradle Maven / Gradle / Ivy
if (project.isBuildSrcProject) return
allprojects {
pluginManager.withPlugin('java-gradle-plugin') {
configurations.all { Configuration conf ->
conf.dependencies.all { Dependency dep ->
if (conf.state != Configuration.State.UNRESOLVED) return
if (dep instanceof FileCollectionDependency && dep.files.toString() != 'file collection') {
conf.dependencies.remove(dep)
}
}
}
configurations.create('gradleApi') { Configuration conf ->
conf.canBeResolved = true
conf.canBeConsumed = false
conf.description = "Gradle API"
configurations.optional.extendsFrom(conf)
}
dependencies {
gradleApi 'name.remal.gradle-api:gradle-api'
testImplementation 'name.remal.gradle-api:gradle-test-kit'
}
List