name.remal.gradle_plugins.toolkit.build_logic.gradle-plugin.gradle Maven / Gradle / Ivy
import org.gradle.api.internal.artifacts.dependencies.SelfResolvingDependencyInternal
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 SelfResolvingDependencyInternal) {
if (dep.targetComponentId != null) {
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy