As the official Keycloak SPI BOM is still lacking good and comprehensive dependency support, I maintain an own, custom Keycloak SPI BOM to use in Keycloak SPI extension projects.
You are free to use this BOM as-is, so there's no warranty that everything is properly set. Versioning is aligned to Keycloak versions, but only major and minor versions, no patch releases! Just use the desired proper tag.
The release versions beginning of 19.0.0
of this project are available at Maven Central.
Simply put the dependency coordinates to the dependencyManagement
section in your pom.xml
(or something similar, if you use e.g. Gradle or something else):
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.github.dasniko</groupId>
<artifactId>keycloak-spi-bom</artifactId>
<version>VERSION</version>
<type>pom</type>
<scope>import</scope>
</dependency>
...
</dependencies>
</dependencyManagement>
As an alternative, and also for current development and snapshot versions and older (< 19.0.0
) releases, this BOM is also available via the JitPack repository.
See link for more details on how to include in your projects.