-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6935c3c
commit ffe8693
Showing
4 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,34 @@ | ||
# keycloak-extensions | ||
Extensions for Keycloak | ||
# Extensions for Keycloak | ||
|
||
This project contains multiple custom extensions that we use in our Keycloak deployment. | ||
|
||
### Packaging artifacts | ||
|
||
Artifacts are packaged using maven. If an extensions depends on a library that's not provided by keycloak it should be deployed as an ear. | ||
To build all artifacts use the following command: | ||
``` | ||
./mvnw clean compile package | ||
``` | ||
|
||
### Releasing to github | ||
|
||
Create a maven settings file in `~/.m2/settings.xml` with the following contents and fill in your username and api token: | ||
``` | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<localRepository>${user.home}/.m2/repository</localRepository> | ||
<servers> | ||
<server> | ||
<id>github</id> | ||
<username>GITHUB_USERNAME</username> | ||
<privateKey>GITHUB_API_TOKEN</privateKey> | ||
</server> | ||
</servers> | ||
</settings> | ||
``` | ||
|
||
To create a github release and upload the generated artifacts on github use the following command: | ||
``` | ||
./mvnw -pl . de.jutzig:github-release-plugin:1.1.1:release | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,52 @@ | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<scm> | ||
<url>https://github.com/tidepool-org/keycloak-extensions</url> | ||
<connection>scm:git:https://github.com/tidepool-org/keycloak-extensions.git</connection> | ||
<developerConnection>scm:git:[email protected]:tidepool-org/keycloak-extensions.git</developerConnection> | ||
</scm> | ||
|
||
<groupId>org.tidepool.keycloak</groupId> | ||
<artifactId>keycloak-extensions</artifactId> | ||
<version>${extensions-version}</version> | ||
<packaging>pom</packaging> | ||
<name>Keycloak Extensions</name> | ||
|
||
<properties> | ||
<extensions-version>0.0.3-SNAPSHOT</extensions-version> | ||
<extensions-version>0.0.5-SNAPHOT</extensions-version> | ||
</properties> | ||
|
||
<modules> | ||
<module>admin</module> | ||
<module>jmx-metrics</module> | ||
<module>jmx-metrics-ear</module> | ||
</modules> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>de.jutzig</groupId> | ||
<artifactId>github-release-plugin</artifactId> | ||
<version>1.1.1</version> | ||
<inherited>false</inherited> | ||
|
||
<configuration> | ||
<repositoryId>tidepool-org/keycloak-extensions</repositoryId> | ||
<releaseName>${project.version}</releaseName> | ||
<tag>${project.version}</tag> | ||
|
||
<fileSets> | ||
<fileSet> | ||
<directory>${project.basedir}</directory> | ||
<includes> | ||
<include>admin/target/*-${extensions-version}.jar</include> | ||
<include>jmx-metrics-ear/target/*-${extensions-version}.ear</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |