How are folks dealing with the verbosity of sharin...
# plugin-development
c
How are folks dealing with the verbosity of sharing an artifact between projects? It requires something like this on the consumer:
Copy code
val lambdaDistributions = configurations.dependencyScope("lambdaDistributions").get()
val lambdaDistributionsResolvable = configurations.resolvable("lambdaDistributionsResolvable") {
    extendsFrom(lambdaDistributions)
}
dependencies {
    lambdaDistributions(project(mapOf(
        "path" to projects.jsLambdaFunctions.name,
        "configuration" to "distZips")))
}
…and something like this on the producer:
Copy code
val distributionZips = configurations.consumable("distZips")

artifacts {
    add(distributionZips.name, distZip)
}
Is that the best pattern? Other patterns / plugins to improve this?
c
that’s excellent code, thank you for sharing - will help clean this up.
👍 1