Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Get Your Hands Dirty on Clean Architecture - Second Edition

You're reading from  Get Your Hands Dirty on Clean Architecture - Second Edition

Product type Book
Published in Jul 2023
Publisher Packt
ISBN-13 9781805128373
Pages 168 pages
Edition 2nd Edition
Languages
Author (1):
Tom Hombergs Tom Hombergs
Profile icon Tom Hombergs

Table of Contents (18) Chapters

Preface Chapter 1: Maintainability Chapter 2: What’s Wrong with Layers? Chapter 3: Inverting Dependencies Chapter 4: Organizing Code Chapter 5: Implementing a Use Case Chapter 6: Implementing a Web Adapter Chapter 7: Implementing a Persistence Adapter Chapter 8: Testing Architecture Elements Chapter 9: Mapping between Boundaries Chapter 10: Assembling the Application Chapter 11: Taking Shortcuts Consciously Chapter 12: Enforcing Architecture Boundaries Chapter 13: Managing Multiple Bounded Contexts Chapter 14: A Component-Based Approach to Software Architecture Chapter 15: Deciding on an Architecture Style Index Other Books You May Enjoy

Build artifacts

Until now, our only tool for demarcating architecture boundaries within our code base was packages. All of our code has been part of the same monolithic build artifact.

A build artifact is the result of a (hopefully automated) build process. The most popular build tools in the Java world are currently Maven and Gradle. So, until now, imagine we had a single Maven or Gradle build script and we could call Maven or Gradle to compile, test, and package the code of our application into a single JAR file.

A main feature of build tools is dependency resolution. To transform a certain code base into a build artifact, a build tool first checks whether all the artifacts the code base depends on are available. If not, it tries to load them from an artifact repository. If this fails, the build will fail with an error before even trying to compile the code.

We can leverage this to enforce the dependencies (and thus enforce the boundaries) between the modules and layers...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime}