name.remal.gradle_plugins.toolkit.build_logic.gradle-plugin.gradle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of build-logic Show documentation
Show all versions of build-logic Show documentation
Remal Gradle plugins: toolkit: build-logic
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