val sharedConfiguration: Configuration by configurations.creating {
    isCanBeConsumed = false
    isCanBeResolved = true
}

dependencies {
    add(sharedConfiguration.name, project(mapOf("path" to ":producer", "configuration" to "sharedConfiguration")))
}

tasks.register("showFile") {
    inputs.files(sharedConfiguration)
    doFirst {
        logger.lifecycle(sharedConfiguration.singleFile.absolutePath)
    }
}

val sharedConfiguration: Configuration by configurations.creating {
    isCanBeConsumed = false
    isCanBeResolved = true
}

dependencies {
    sharedConfiguration(project(path = ":producer", configuration = "sharedConfiguration"))
}

tasks.register("showFile") {
    inputs.files(sharedConfiguration)
    doFirst {
        logger.lifecycle(sharedConfiguration.singleFile.absolutePath)
    }
}

Simplify population of consumer configuration
Simplify population of consumer configuration

gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle