Composite Builds with Gradle by Stefan Oehme
Are you tired of publishing a library to your local repository just to check whether your change fixed that elusive bug in the application? Are you working on a mono-repo and wish you could import just a small part of it into your IDE? Would you like your projects to automatically react to other projects being checked out next to them? Then you should learn about Gradle's new Composite Build feature. Composite Builds allow you to combine multiple independent Gradle builds into a single one. Binary dependencies are automatically replaced with project dependencies. When you make a change to an upstream component, it is immediately visible to its dependents. You can import composite builds into the IDE and work on them as if you were looking at a single code base. Composite builds also make it easy to split a large mono-repo into smaller parts that can be worked on individually. This makes the migration path toward separated repositories simple. And thanks to Gradle's rich DSL, you can compose builds dynamically. Don't let your repository structure dictate how you work! Stefan Oehme works as a core developer on the Gradle Build Tool as well as Eclipse Buildship (the Gradle integration for Eclipse). He has a passion for making other people more productive, which lead him into the fields of build automation and domain specific languages. When he's not coding, he likes spending his time hiking, reading and enjoying good food. [PLR-0807]