Skip to content

Commit

Permalink
Merge pull request #5 from vymalo/features/4-keycloak-22-support
Browse files Browse the repository at this point in the history
Added support for Keycloak v22
  • Loading branch information
stephane-segning authored Aug 1, 2023
2 parents d46b10a + 16aa9cc commit 481d213
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
prerelease: false
allowUpdates: true
bodyFile: CHANGELOG.md
tag: v0.2.0
tag: v0.3.0
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Changelog

## v0.2.0
## v0.3.0

- Added RabbitMQ client
- Use Gson as Serialization lib for http
- Upgraded to Keycloak 22.0.1
4 changes: 2 additions & 2 deletions Dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG TAG=21.0.2
ARG TAG=22.0.1

FROM quay.io/keycloak/keycloak:${TAG}

ENV WEBHOOK_PLUGIN_VERSION 0.2.0
ENV WEBHOOK_PLUGIN_VERSION 0.3.0

ENV KEYCLOAK_DIR /opt/keycloak
ENV KC_PROXY edge
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG TAG=21.0.2
ARG PLUGIN_VERSION=0.2.0
ARG TAG=22.0.1
ARG PLUGIN_VERSION=0.3.0

FROM curlimages/curl AS DOWNLOADER

Expand Down
19 changes: 13 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar


plugins {
kotlin("jvm") version "1.8.0"
kotlin("jvm") version "1.9.0"
id("org.openapi.generator") version "6.5.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("groovy")
}

group = "com.vymalo.keycloak.webhook"
version = "0.2.0"
version = "0.3.0"

val gsonVersion = "2.10.1"
val amqpVersion = "5.17.0"
val okhttp3Version = "4.10.0"
val okioVersion = "3.0.0"

repositories {
mavenCentral()
Expand All @@ -23,9 +25,11 @@ dependencies {

api("org.apache.commons", "commons-lang3", "3.12.0")

implementation("org.keycloak", "keycloak-services", "21.0.2")
implementation("org.keycloak", "keycloak-server-spi", "21.0.2")
implementation("org.keycloak", "keycloak-server-spi-private", "21.0.2")
implementation(kotlin("stdlib"))

implementation("org.keycloak", "keycloak-services", "22.0.1")
implementation("org.keycloak", "keycloak-server-spi", "22.0.1")
implementation("org.keycloak", "keycloak-server-spi-private", "22.0.1")

api("com.squareup.okhttp3", "okhttp", okhttp3Version)
api("com.rabbitmq", "amqp-client", amqpVersion)
Expand Down Expand Up @@ -84,9 +88,12 @@ tasks {
val shadowJar by existing(ShadowJar::class) {
dependencies {
include(dependency("com.squareup.okhttp3:okhttp:$okhttp3Version"))
include(dependency("org.jetbrains.kotlin:kotlin-reflect:1.8.0"))
include(dependency("com.squareup.okio:okio-jvm:$okioVersion"))
include(dependency("org.jetbrains.kotlin:kotlin-stdlib:1.9.0"))
include(dependency("org.jetbrains.kotlin:kotlin-reflect:1.9.0"))
include(dependency("com.rabbitmq:amqp-client:$amqpVersion"))
include(dependency("com.google.code.gson:gson:$gsonVersion"))
}
dependsOn(build)
}
}
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
context: .
dockerfile: Dev.Dockerfile
ports:
- '9200:9200'
- '9100:9100'
environment:
# WEBHOOK_EVENTS_TAKEN: "LOGIN,REGISTER,LOGOUT"

Expand Down Expand Up @@ -46,7 +46,7 @@ services:
- RABBITMQ_PASSWORD=password

watcher:
image: ssegning/api-watcher
image: ssegning/api-watcher:latest
ports:
- "3000:3000"
volumes:
Expand Down
2 changes: 1 addition & 1 deletion openapi/webhook.open-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
email: [email protected]
license:
name: MIT
version: 0.2.0
version: 0.3.0
externalDocs:
description: Find out more about calling setting up an external service to verify phone number
url: https://blog.ssegning.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ class WebhookEventListenerProviderFactory : EventListenerProviderFactory, Server

override fun getId(): String = PROVIDER_ID

override fun getOperationalInfo() = mapOf("version" to "0.2.0")
override fun getOperationalInfo() = mapOf("version" to "0.3.0")

}

0 comments on commit 481d213

Please sign in to comment.