Add maven POM via gradle publish

Done with https://www.baeldung.com/gradle-build-to-maven-pom
This commit is contained in:
Benjamin Yule Bädorf 2024-04-27 22:02:35 +02:00
parent a4d71a174b
commit bb2653ffe3
Signed by: b12f
GPG key ID: 729956E1124F8F26
2 changed files with 56 additions and 0 deletions

View file

@ -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")
}
}
}

39
pom.xml Normal file
View file

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- This module was also published with a richer model, Gradle metadata, -->
<!-- which should be used instead. Do not delete the following line which -->
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
<!-- that they should prefer consuming it instead. -->
<!-- do_not_remove: published-with-gradle-metadata -->
<modelVersion>4.0.0</modelVersion>
<groupId>de.scimeda.keycloak</groupId>
<artifactId>last-login-event-listener</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-core</artifactId>
<version>23.0.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-server-spi</artifactId>
<version>23.0.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-server-spi-private</artifactId>
<version>23.0.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-services</artifactId>
<version>23.0.6</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>