Skip to content
Snippets Groups Projects
Commit 7e1524f9 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-1518 use common for pluto-server

parent 60ab78de
Branches
Tags
No related merge requests found
...@@ -5,33 +5,23 @@ ...@@ -5,33 +5,23 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>de.itvsh.kop</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>kop-common-parent</artifactId>
<version>2.4.12</version> <version>0.0.1-SNAPSHOT</version>
<relativePath /> <!-- lookup parent from repository --> <relativePath/>
</parent> </parent>
<groupId>de.itvsh.ozg.pluto</groupId> <groupId>de.itvsh.ozg.pluto</groupId>
<artifactId>pluto-server</artifactId> <artifactId>pluto-server</artifactId>
<version>0.18.0-SNAPSHOT</version> <version>0.18.0-SNAPSHOT</version>
<name>Pluto Server</name> <name>Pluto Server</name>
<description>Server Implementierung des VorgangManagers (Pluto) <description>
Server Implementierung des VorgangManagers (Pluto)
</description> </description>
<properties> <properties>
<java.version>17</java.version> <java.version>17</java.version>
<grpc.spring-boot-starter.version>2.12.0.RELEASE</grpc.spring-boot-starter.version>
<mapstruct.version>1.4.2.Final</mapstruct.version>
<lorem.version>2.1</lorem.version>
<faker.version>1.0.2</faker.version>
<spring-admin.version>2.3.1</spring-admin.version>
<lombok.version>edge-SNAPSHOT</lombok.version>
<commons-io.version>2.8.0</commons-io.version>
<commons-collections.version>4.4</commons-collections.version>
<spring-boot.build-image.imageName>docker.ozg-sh.de/pluto:build-latest</spring-boot.build-image.imageName> <spring-boot.build-image.imageName>docker.ozg-sh.de/pluto:build-latest</spring-boot.build-image.imageName>
<zip.version>2.7.0</zip.version> <zip.version>2.7.0</zip.version>
...@@ -63,7 +53,6 @@ ...@@ -63,7 +53,6 @@
<dependency> <dependency>
<groupId>net.devh</groupId> <groupId>net.devh</groupId>
<artifactId>grpc-server-spring-boot-starter</artifactId> <artifactId>grpc-server-spring-boot-starter</artifactId>
<version>${grpc.spring-boot-starter.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
...@@ -74,11 +63,7 @@ ...@@ -74,11 +63,7 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
</dependency> </dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${spring-admin.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId> <artifactId>spring-boot-starter-validation</artifactId>
...@@ -103,29 +88,26 @@ ...@@ -103,29 +88,26 @@
<dependency> <dependency>
<groupId>commons-io</groupId> <groupId>commons-io</groupId>
<artifactId>commons-io</artifactId> <artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId> <artifactId>commons-collections4</artifactId>
<version>${commons-collections.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.thedeanda</groupId> <groupId>com.thedeanda</groupId>
<artifactId>lorem</artifactId> <artifactId>lorem</artifactId>
<version>${lorem.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.javafaker</groupId> <groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId> <artifactId>javafaker</artifactId>
<version>${faker.version}</version> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mapstruct</groupId> <groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId> <artifactId>mapstruct</artifactId>
<version>${mapstruct.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.freemarker</groupId> <groupId>org.freemarker</groupId>
...@@ -142,19 +124,6 @@ ...@@ -142,19 +124,6 @@
<version>${jsoup.version}</version> <version>${jsoup.version}</version>
</dependency> </dependency>
<!-- Logging/Monitoring -->
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<version>6.3</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Dev --> <!-- Dev -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
...@@ -171,7 +140,6 @@ ...@@ -171,7 +140,6 @@
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<optional>true</optional> <optional>true</optional>
<version>${lombok.version}</version>
</dependency> </dependency>
<!-- Test --> <!-- Test -->
...@@ -219,35 +187,11 @@ ...@@ -219,35 +187,11 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>build info</id>
<goals>
<goal>build-info</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.jacoco</groupId> <groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<id>start-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>generate-report</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
...@@ -263,69 +207,15 @@ ...@@ -263,69 +207,15 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<fork>true</fork>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.version}</version>
</path>
</annotationProcessorPaths>
<showWarnings>true</showWarnings>
<compilerArgs>
<compilerArg>
-Amapstruct.defaultComponentModel=spring
</compilerArg>
<compilerArg>
-Amapstruct.unmappedTargetPolicy=WARN
</compilerArg>
<compilerArg>
-Amapstruct.unmappedSourcePolicy=WARN
</compilerArg>
</compilerArgs>
</configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>pl.project13.maven</groupId> <groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId> <artifactId>git-commit-id-plugin</artifactId>
<configuration>
<offline>true</offline>
</configuration>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<repositories>
<repository>
<id>ozg-nexus</id>
<name>ozg nexus</name>
<url>https://nexus.ozg-sh.de/repository/ozg-group/</url>
</repository>
<repository>
<id>projectlombok.org</id>
<url>https://projectlombok.org/edge-releases</url>
</repository>
</repositories>
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>ozg-nexus</id> <id>ozg-nexus</id>
...@@ -333,54 +223,10 @@ ...@@ -333,54 +223,10 @@
<url>https://nexus.ozg-sh.de/repository/ozg-releases/</url> <url>https://nexus.ozg-sh.de/repository/ozg-releases/</url>
</repository> </repository>
<snapshotRepository> <snapshotRepository>
<id>ozg-nexus</id> <id>ozg-snapshots-nexus</id>
<name>ozg-snapshots</name> <name>ozg-snapshots</name>
<url>https://nexus.ozg-sh.de/repository/ozg-snapshots/</url> <url>https://nexus.ozg-sh.de/repository/ozg-snapshots/</url>
</snapshotRepository> </snapshotRepository>
</distributionManagement> </distributionManagement>
<profiles>
<profile>
<id>docker-build</id>
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.13</version>
<configuration>
<username>admin</username>
<password>admin</password>
<repository>registry.ozg-sh.de/sh-land/pluto</repository>
<!-- <repository>default-route-openshift-image-registry.apps.lab.okd.local/sh-kiel-dev/pluto</repository> -->
<tag>${git.branch}-${project.version}</tag>
<useMavenSettingsForAuth>true</useMavenSettingsForAuth>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>deploy</phase>
<goals>
<goal>build</goal>
<goal>tag</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>
...@@ -10,6 +10,7 @@ import java.time.ZonedDateTime; ...@@ -10,6 +10,7 @@ import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
import java.util.UUID; import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Nested;
...@@ -28,7 +29,6 @@ import de.itvsh.ozg.pluto.command.WiedervorlageTestFactory; ...@@ -28,7 +29,6 @@ import de.itvsh.ozg.pluto.command.WiedervorlageTestFactory;
import de.itvsh.ozg.pluto.common.test.DataITCase; import de.itvsh.ozg.pluto.common.test.DataITCase;
import de.itvsh.ozg.pluto.vorgang.FindVorgangRequest.OrderCriteria; import de.itvsh.ozg.pluto.vorgang.FindVorgangRequest.OrderCriteria;
import de.itvsh.ozg.pluto.vorgang.Vorgang.Status; import de.itvsh.ozg.pluto.vorgang.Vorgang.Status;
import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils;
@DataITCase @DataITCase
class VorgangHeaderRepositoryITCase { class VorgangHeaderRepositoryITCase {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment