Skip to main content

Dependency & plugin management

This parent centralizes the versions and build configuration shared by the jEAP libraries. The bulk of dependency versions come from the inherited spring-boot-dependencies BOM; this page summarizes what the parent adds on top of Spring Boot. It is an orientation, not a full BOM listing — consult pom.xml for the authoritative versions.

Key properties​

PropertyPurpose
java.versionJava baseline (25)
maven.compiler.releaseCompiler release level (25)
spring-boot.versionSpring Boot version; keep in sync with <parent>
spring-cloud.versionSpring Cloud BOM version
aws.sdk.versionAWS SDK BOM version
pact-jvm.versionPact (consumer-driven contracts) version

Imported BOMs​

The <dependencyManagement> section imports these BOMs (type=pom, scope=import):

  • org.springframework.cloud:spring-cloud-dependencies
  • software.amazon.awssdk:bom

Additionally managed dependencies​

Versions for libraries not covered (or pinned differently) by Spring Boot, including:

  • ShedLock (shedlock-spring, shedlock-provider-jdbc-template)
  • Togglz (togglz-spring-boot-starter, togglz-spring-security)
  • Pact JUnit 5 (consumer and provider, test scope)
  • Bouncy Castle (bcpkix-jdk18on, bcprov-jdk18on) and the Amazon Corretto Crypto Provider
  • rest-assured (and its spring-mock-mvc, json-path-gpath, xml-path-gpath modules; since REST Assured 7 rest-assured no longer brings a path engine along, so consumers add json-path-gpath/xml-path-gpath themselves. The old names json-path and xml-path are still managed and relocate to them)
  • logstash-logback-encoder, commons-collections4, protobuf-java
  • Lombok (also added as a provided dependency to every project)

Version overrides due to CVEs​

PostgreSQL JDBC is centrally pinned through postgresql.version to address the findings from the 2026-12-03 security scan. Consumers inherit the fix through this parent; no per-project dependency version is needed.

CVE-driven version overrides are grouped at the bottom of the version properties in pom.xml, each with a comment naming the CVE. How to pin depends on whether Spring Boot manages the artifact:

  • Managed by Spring Boot (e.g. org.apache.tomcat.embed:tomcat-embed-core via tomcat.version): override the version property only. The inherited spring-boot-dependencies entry references that property, so no <dependencyManagement> entry is needed.
  • Not managed by Spring Boot (e.g. the transitive at.yawk.lz4:lz4-java): add both a version property and a <dependencyManagement> entry.

Overrides do not have to be revisited by hand: every CI build runs the version pin check, which fails the build as soon as a pin is equal to or behind the version the Spring Boot BOM manages. Run it locally with ci/check-version-pins.sh.

Managed plugins​

<pluginManagement> and the active <build><plugins> configure the shared build, including:

  • maven-compiler-plugin (release 25, full annotation processing, -Xlint flags)
  • maven-surefire-plugin (including Pact provider system properties)
  • maven-failsafe-plugin (integration tests)
  • jacoco-maven-plugin for coverage
  • sonar-maven-plugin for the Sonar analysis, managed so that mvn sonar:sonar runs a fixed plugin version instead of the one the plugin prefix currently resolves to
  • git-commit-id-maven-plugin for build/git metadata
  • lombok-maven-plugin (delombok), maven-source-plugin, maven-javadoc-plugin
  • au.com.dius.pact.provider:maven for contract publishing
  • License compliance (org.honton.chas:license-maven-plugin) and third-party license generation (org.codehaus.mojo:license-maven-plugin with the jeap-license-template)
  • maven-gpg-plugin and jeap-central-publishing-maven-plugin for Maven Central releases

Profiles​

  • bump-patch-version / bump-minor-version / bump-major-version — bump the project version via the versions-maven-plugin (e.g. mvn -Pbump-patch-version -N validate).
  • cdct-enable-publishing-jenkins / cdct-enable-publishing-local — enable publishing of consumer-driven contracts and verification results.
  • internal-parent-build-only — license compliance/third-party generation for internal builds.
  • maven-central-publish — GPG signing and publishing to Maven Central.