# Gradle brainteasers 1/2: aggregating artifacts

DevFeed: [Gradle brainteasers 1/2: aggregating artifacts](<https://devfeed.tech/articles/gradle-brainteasers-1-2-aggregating-artifacts-25430.md>)

Original publisher: [Read original article](<https://blog.mbonnin.net/gradle-brainteasers-12-aggregating-artifacts>)

Author: Martin Bonnin

Published: 2024-07-15T10:44:26Z

Content type: tutorial

Language: en

Sources: [Martin Bonnin's blog](<https://devfeed.tech/sources/martin-bonnin-s-blog.md>)

Topics: [Gradle](<https://devfeed.tech/topics/gradle.md>), [modules](<https://devfeed.tech/topics/modules.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [modules](<https://devfeed.tech/tags/modules.md>)

## AI overview

This tutorial explains how to aggregate artifacts from multiple Gradle projects in a multi-project build while supporting project isolation. It describes using configurations and the artifacts {} API to express cross-project dependencies and avoid unsafe sharing patterns that can cause race conditions and hinder parallelized, reproducible builds.

## Source excerpt

I've been developing Gradle plugins for 7 years now. Sometimes I love it, sometimes I hate it. But even when I hate it, I love hating it! I just realized some of the Gradle APIs are like those metal wire brain teasers games: Are they easy? No. Do y...