World Congress 2026 Europe Jul 10, 2026 Session details

Code Once, Use Everywhere: Building Shared Libraries for Multiple Projects

Vadzim Prudnikau

Shared Spring Boot libraries often devolve into maintenance nightmares. It doesn't have to be this way. Learn to architect modular, auto-configured components developers actually want to use.

Pause
Mute Enter Fullscreen
#1 about 4 min

Introduction to building shared Spring Boot libraries

An overview of the challenges and core agenda for developing sustainable shared packages.

#2 about 2 min

Determining when to extract code into a shared library

Specific indicators that code should be abstracted, such as repeated bug fixes and cross-project technical needs.

#3 about 3 min

Identifying logic to exclude from shared libraries

Why placing business logic and unstable features into a shared space leads to tightly coupled dependencies.

#4 about 4 min

Designing the global structure of a shared library

Establishing library structures with modular inclusion properties and standardized generic Maven configurations.

#5 about 5 min

Organizing code at the module and submodule levels

How to decouple framework-agnostic client logic from Spring-specific autoconfigurations and starter artifacts.

#6 about 4 min

Managing Spring configurations and bean definition overrides

Using autoconfiguration and conditional annotations to enhance performance and securely override context defaults.

#7 about 3 min

Enforcing code quality rules across client projects

Automating dependency cycle checks and standardized test formatting with tools like EditorConfig and ArchUnit.

#8 about 2 min

Creating discoverable and accessible library documentation

Best practices for writing explicit integration guidelines and code examples that assist junior developers.

#9 about 2 min

Streamlining contribution processes to aid maintainability

How straightforward setup routines encourage external collaboration and reduce maintaining overhead for authors.

#10 about 3 min

Applying semantic versioning and maintaining changelogs

Communicating library modifications effectively by mapping major and minor package revisions to explicit build IDs.

#11 about 2 min

Handling legacy versions and validating package builds

Why updating entirely to latest major versions ensures security patching while referential builds verify deployment safety.

#12 about 3 min

Encouraging shared library adoption through organizational advertising

Why advertising new internal tools verifies actual demand more efficiently than establishing strict enterprise usage requirements.

Matching moments

2:22 min

Q&A on source code sharing and library coupling

Manfred Steyer Manfred Steyer · WWC 2021

3:08 min

Sharing core dependencies for performance and team autonomy

Serg Hospodarets · LIVE

1:59 min

Managing library dependencies and enforcing consistent code style

Johan Hutting Johan Hutting · WWC 2024

4:49 min

Managing shared dependencies across isolated teams

Luca Mezzalira Luca Mezzalira · JS Congress

2:19 min

Simplifying solution structures and splitting shared projects

Dennis Doomen Dennis Doomen · WWC Europe 2026

49 sec

Structuring projects with Java and Spring Boot

Michael Eder +1 · LIVE

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Merging at Scale: From Broken Builds to Green Mainline

Preetam Dwivedi, Manjari Akella

Preetam Dwivedi
Manjari Akella
Open session

World Congress 2026 North America

On the Public Clock: Open-Source Defense When You're Not in the Club

Nicholas Muy

VP Engineering Platform and Security at Scrut.io

Nicholas Muy
Open session

World Congress 2026 North America

From Cloud Native to Multi-Cloud Native: Write Once, Deploy Anywhere

Sandeep Pal

Principal Member of Technical Staff at Salesforce

Sandeep Pal
Open session

World Congress 2026 North America

One Repo, One Strategy: Scalable Full-Stack Testing in a Monorepo World

Bartosz Leczycki, Paweł Matynia

Bartosz Leczycki
Paweł Matynia
Open session

World Congress 2026 North America

In-Person by Default: Principles & Practices for Building Developer Meetups

Steve Chen

Executive Director and Founder at Code & Coffee

Steve Chen
Open session

World Congress 2026 North America

Lessons from 20 Years of Bootstrapping an Open Source Business to $50M+

Peter Farkas

Percona, Founder

Peter Farkas