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

8:17 min

Deconstructing core modules into independent libraries and applications

Hans Hosea Schäfer · LIVE

2:22 min

Q&A on source code sharing and library coupling

Manfred Steyer Manfred Steyer · World Congress 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 · World Congress 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 · World Congress 2026 Europe

Upcoming sessions on this topic

Open session

How We Cut Our API's p99 Latency from Minutes to Under a Second

  • Deepak Agrawal

    Atlassian

    Principal Software Engineer

Open session

Java is Coming for Python’s Lunch: The Rise of JVM AI Agents

  • Frederik Pietzko

    Jetbrains

    Developer Advocate

Open session

Teaching AI Coding Agents to Build It Right the First Time

  • Sajeetharan Sinnathurai

    Microsoft

    Principal Product Manager

Open session

Beware of Strangers Bearing Code: Open Source Trust in the Agent Era

  • Vikram Vaswani

    Consultant

Open session

Multi-Cloud Isn't a Project. It's a Side Effect.

  • Antonio Mendoza Pérez

    Temporal Technologies

    Staff Developer Success Engineer

  • Gaurav Thadani

    Temporal

    Staff Developer Success Engineer

Open session

Designing for Every Direction: Logical CSS for Global, Adaptive, and Effortlessly Reversible UIs

  • Vidhya Krishnamoorthy

    Morgan Stanley

    VP, Software Engineering Manager