From bb2653ffe374ac0f5cd0392d8d757045dc9b2761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Sat, 27 Apr 2024 22:02:35 +0200 Subject: [PATCH] Add maven POM via gradle publish Done with https://www.baeldung.com/gradle-build-to-maven-pom --- build.gradle | 17 +++++++++++++++++ pom.xml | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 pom.xml diff --git a/build.gradle b/build.gradle index 5018443..3141b8c 100644 --- a/build.gradle +++ b/build.gradle @@ -9,6 +9,8 @@ plugins { id 'idea' } +apply plugin: 'maven-publish' + repositories { mavenLocal() maven { @@ -41,3 +43,18 @@ java { tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } + +publishing { + publications { + customLibrary(MavenPublication) { + from components.java + } + } + + repositories { + maven { + name = 'keycloak-last-login-event-listener' + url = layout.buildDirectory.dir("repo") + } + } +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d4490cb --- /dev/null +++ b/pom.xml @@ -0,0 +1,39 @@ + + + + + + + + 4.0.0 + de.scimeda.keycloak + last-login-event-listener + 0.0.1-SNAPSHOT + + + org.keycloak + keycloak-core + 23.0.6 + provided + + + org.keycloak + keycloak-server-spi + 23.0.6 + provided + + + org.keycloak + keycloak-server-spi-private + 23.0.6 + provided + + + org.keycloak + keycloak-services + 23.0.6 + provided + + +