Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Add Building Block for SAP Cloud Foundry (#4)
Browse files Browse the repository at this point in the history
Update JJWT to 0.11.5
Add Nimbus-Jose-JWT Library
Add SAP Cloud Foundry Dependencies
Add Mapstruct Dependency
Add Maven Compiler Plugin Config to use Mapstruct and Lombok
  • Loading branch information
f11h authored May 16, 2022
1 parent 02e0927 commit b74604e
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 5 deletions.
60 changes: 55 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<module>keycloak</module>
<module>psql-persistence</module>
<module>mysql-persistence</module>
<module>sap-cf</module>
</modules>

<distributionManagement>
Expand Down Expand Up @@ -87,11 +88,11 @@
</dependency>


<!-- General Libs -->
<!-- Lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.24</version>
<version>1.18.24</version><!-- Also update version of lombok in Maven Compiler Plugin -->
</dependency>


Expand Down Expand Up @@ -125,19 +126,24 @@
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.11.3</version>
<version>0.11.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.3</version>
<version>0.11.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.11.3</version>
<version>0.11.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<version>9.22</version>
</dependency>


<!-- Persistence -->
Expand Down Expand Up @@ -235,6 +241,30 @@
<artifactId>aws-java-sdk-s3</artifactId>
<version>1.12.201</version>
</dependency>

<!-- SAP Cloud Foundry -->
<dependency>
<groupId>io.pivotal.cfenv</groupId>
<artifactId>java-cfenv-boot</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sap.cloud.sdk.cloudplatform</groupId>
<artifactId>scp-cf</artifactId>
<version>3.67.0</version>
</dependency>
<dependency>
<groupId>com.sap.hcp.cf.logging</groupId>
<artifactId>cf-java-logging-support-logback</artifactId>
<version>3.6.0</version>
</dependency>

<!-- Mapstruct -->
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>1.4.2.Final</version><!-- Also update version of lombok in Maven Compiler Plugin -->
</dependency>
</dependencies>
</dependencyManagement>

Expand All @@ -261,6 +291,26 @@
<version>3.0.0-M6</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.24</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>1.4.2.Final</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
33 changes: 33 additions & 0 deletions sap-cf/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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>

<artifactId>cwa-parent-sap-cf</artifactId>
<packaging>pom</packaging>

<name>cwa-parent-sap-cf</name>
<description>CWA Backend Service Parent POM with dependencies for SAP Cloud Foundry.</description>

<parent>
<groupId>app.coronawarn</groupId>
<artifactId>cwa-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<dependencies>
<dependency>
<groupId>io.pivotal.cfenv</groupId>
<artifactId>java-cfenv-boot</artifactId>
</dependency>
<dependency>
<groupId>com.sap.cloud.sdk.cloudplatform</groupId>
<artifactId>scp-cf</artifactId>
</dependency>
<dependency>
<groupId>com.sap.hcp.cf.logging</groupId>
<artifactId>cf-java-logging-support-logback</artifactId>
</dependency>
</dependencies>
</project>

0 comments on commit b74604e

Please sign in to comment.