The 4.0.0 release contains an update to Keycloak 22 introduced in #169 .
While this adjusted the dependencies in the pom.xml for the Maven build, it did not adjust the build.gradle file.
This lead to ./gradlew jar failing.
How
We have now adjusted the build.gradle to reflect the same dependency changes that have been made to the pom.xml.
With that, we also bump the Keycloak version in the gradle.properties to 22.
Verification Steps
Build with ./gradlew jar
Alternatively, use the Dockerfile from #173 for a clean environment:
FROM gradle:7.4.2-jdk17 AS metrics
WORKDIR /spi
USER root
RUN chown -R gradle /spi
USER gradle
RUN git clone https://github.com/aerogear/keycloak-metrics-spi.git . \
&& ./gradlew jar
Checklist:
[x] Code has been tested locally by PR requester
[ ] Changes have been successfully verified by another team member
Motivation
The Gradle build is broken (see https://github.com/aerogear/keycloak-metrics-spi/issues/173#issuecomment-1669779136).
Why
The 4.0.0 release contains an update to Keycloak 22 introduced in #169 . While this adjusted the dependencies in the pom.xml for the Maven build, it did not adjust the build.gradle file. This lead to
./gradlew jar
failing.How
We have now adjusted the build.gradle to reflect the same dependency changes that have been made to the pom.xml. With that, we also bump the Keycloak version in the gradle.properties to 22.
Verification Steps
./gradlew jar
Alternatively, use the Dockerfile from #173 for a clean environment:
Checklist: