Skip to content

Commit db85a0b

Browse files
committed
Restructure POMs
Project now utilizes separate version number from Keycloak.
1 parent d174191 commit db85a0b

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
/target/
1+
target/
2+
ear-module/target/
3+
jar-module/target/
24
*.iml
35
.idea/
46
*.sh

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Introduction
2-
This project introduces Argon2 Password Hashing for Keycloak, it uses `de.mkammerer.argon2` as the library, more can be found on the [GitHub Project](https://github.com/phxql/argon2-jvm).
2+
This project introduces Argon2 Password Hashing for Keycloak (version 8.0.0 and above), it uses `de.mkammerer.argon2` as the library, more can be found on the [GitHub Project](https://github.com/phxql/argon2-jvm).
33

44
It generates an EAR which can be deployed using [Keycloak Deployer](https://www.keycloak.org/docs/latest/server_development/index.html#using-the-keycloak-deployer).
55

@@ -11,7 +11,7 @@ mvn clean install;
1111

1212
This will build both the `jar-module` and `ear-module`:
1313
```
14-
[INFO] Reactor Summary for Argon2 Password Hash Provider 9.0.0:
14+
[INFO] Reactor Summary for Argon2 Password Hash Provider 1.0.0:
1515
[INFO]
1616
[INFO] Argon2 Password Hash Provider ...................... SUCCESS [ 0.633 s]
1717
[INFO] Argon2 Password Hash Provider Module ............... SUCCESS [ 3.264 s]
@@ -21,7 +21,7 @@ This will build both the `jar-module` and `ear-module`:
2121
# Installation
2222
The EAR will contain all the necessary dependencies, therefore you can hot-deploy the module without additional configuration:
2323
```
24-
cp ear-module/target/argon2-password-hash-provider-bundle-9.0.0.ear /opt/keycloak/standalone/deployments/;
24+
cp ear-module/target/argon2-password-hash-provider-bundle-*.ear /opt/keycloak/standalone/deployments/;
2525
```
2626

2727
# System Dependencies

ear-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>be.cronos.keycloak</groupId>
66
<artifactId>argon2-password-hash-provider</artifactId>
7-
<version>9.0.0</version>
7+
<version>1.0.0</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010

jar-module/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>be.cronos.keycloak</groupId>
77
<artifactId>argon2-password-hash-provider</artifactId>
8-
<version>9.0.0</version>
8+
<version>1.0.0</version>
99
</parent>
1010

1111
<artifactId>argon2-password-hash-provider-module</artifactId>
@@ -14,21 +14,25 @@
1414
<dependency>
1515
<groupId>org.keycloak</groupId>
1616
<artifactId>keycloak-core</artifactId>
17+
<version>${keycloak.version}</version>
1718
<scope>provided</scope>
1819
</dependency>
1920
<dependency>
2021
<groupId>org.keycloak</groupId>
2122
<artifactId>keycloak-server-spi</artifactId>
23+
<version>${keycloak.version}</version>
2224
<scope>provided</scope>
2325
</dependency>
2426
<dependency>
2527
<groupId>org.keycloak</groupId>
2628
<artifactId>keycloak-server-spi-private</artifactId>
29+
<version>${keycloak.version}</version>
2730
<scope>provided</scope>
2831
</dependency>
2932
<dependency>
3033
<groupId>org.keycloak</groupId>
3134
<artifactId>keycloak-services</artifactId>
35+
<version>${keycloak.version}</version>
3236
<scope>provided</scope>
3337
</dependency>
3438
<dependency>
@@ -39,6 +43,8 @@
3943
<dependency>
4044
<groupId>junit</groupId>
4145
<artifactId>junit</artifactId>
46+
<version>${junit.version}</version>
47+
<scope>provided</scope>
4248
</dependency>
4349
</dependencies>
4450

pom.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<name>Argon2 Password Hash Provider</name>
5-
<parent>
6-
<groupId>org.keycloak</groupId>
7-
<artifactId>keycloak-parent</artifactId>
8-
<version>9.0.0</version>
9-
</parent>
105

116
<groupId>be.cronos.keycloak</groupId>
127
<artifactId>argon2-password-hash-provider</artifactId>
8+
<version>1.0.0</version>
139
<packaging>pom</packaging>
1410

1511
<modules>
@@ -21,10 +17,13 @@
2117
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2218
<maven.compiler.source>1.8</maven.compiler.source>
2319
<maven.compiler.target>1.8</maven.compiler.target>
24-
20+
<keycloak.version>9.0.2</keycloak.version>
2521
<argon2jvm.version>2.6</argon2jvm.version>
22+
<junit.version>4.13</junit.version>
2623
</properties>
2724

25+
26+
2827
<build>
2928
<plugins>
3029
<plugin>
@@ -44,6 +43,13 @@
4443
<skip>true</skip>
4544
</configuration>
4645
</plugin>
46+
47+
<plugin>
48+
<groupId>org.sonarsource.scanner.maven</groupId>
49+
<artifactId>sonar-maven-plugin</artifactId>
50+
<version>3.7.0.1746</version>
51+
</plugin>
52+
4753
</plugins>
4854
</build>
4955

0 commit comments

Comments
 (0)