-
Notifications
You must be signed in to change notification settings - Fork 9
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
56258d8
commit d4ca265
Showing
1 changed file
with
338 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,338 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
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> | ||
<parent> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>3.1.5</version> | ||
<relativePath/> <!-- lookup parent from repository --> | ||
</parent> | ||
<groupId>com.example.envers</groupId> | ||
<artifactId>boot-data-envers</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<name>boot-data-envers</name> | ||
<description>boot-data-envers</description> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
|
||
<java.version>17</java.version> | ||
<spring-cloud.version>2022.0.4</spring-cloud.version> | ||
<springdoc-openapi.version>2.2.0</springdoc-openapi.version> | ||
|
||
<project.testresult.directory>${project.build.directory}/test-results</project.testresult.directory> | ||
<spotless.version>2.40.0</spotless.version> | ||
<dependency-check-maven.version>8.4.2</dependency-check-maven.version> | ||
<properties-maven-plugin.version>1.2.1</properties-maven-plugin.version> | ||
<sonar-maven-plugin.version>3.10.0.2594</sonar-maven-plugin.version> | ||
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version> | ||
<jacoco.minimum.coverage>0.80</jacoco.minimum.coverage> | ||
<jacoco.utReportFolder>${project.build.directory}/jacoco/test</jacoco.utReportFolder> | ||
<jacoco.utReportFile>${jacoco.utReportFolder}/test.exec</jacoco.utReportFile> | ||
<jacoco.itReportFolder>${project.build.directory}/jacoco/integrationTest</jacoco.itReportFolder> | ||
<jacoco.itReportFile>${jacoco.itReportFolder}/integrationTest.exec</jacoco.itReportFile> | ||
<junit.utReportFolder>${project.testresult.directory}/test</junit.utReportFolder> | ||
<junit.itReportFolder>${project.testresult.directory}/integrationTest</junit.itReportFolder> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-actuator</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-validation</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-web</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-devtools</artifactId> | ||
<scope>runtime</scope> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-configuration-processor</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-data-jpa</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.postgresql</groupId> | ||
<artifactId>postgresql</artifactId> | ||
<scope>runtime</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.liquibase</groupId> | ||
<artifactId>liquibase-core</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springdoc</groupId> | ||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> | ||
<version>${springdoc-openapi.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-test</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-testcontainers</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>postgresql</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-dependencies</artifactId> | ||
<version>${spring-cloud.version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>build-info</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>io.github.git-commit-id</groupId> | ||
<artifactId>git-commit-id-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>revision</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<failOnNoGitDirectory>false</failOnNoGitDirectory> | ||
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo> | ||
<generateGitPropertiesFile>true</generateGitPropertiesFile> | ||
<includeOnlyProperties> | ||
<includeOnlyProperty>^git.branch$</includeOnlyProperty> | ||
<includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty> | ||
<includeOnlyProperty>^git.commit.user.name$</includeOnlyProperty> | ||
<includeOnlyProperty>^git.commit.message.full$</includeOnlyProperty> | ||
</includeOnlyProperties> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<runOrder>alphabetical</runOrder> | ||
<reportsDirectory>${junit.utReportFolder}</reportsDirectory> | ||
<excludes> | ||
<exclude>**/*IT*</exclude> | ||
<exclude>**/*IntTest*</exclude> | ||
<exclude>**/*IntegrationTest*</exclude> | ||
</excludes> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-failsafe-plugin</artifactId> | ||
<configuration> | ||
<classesDirectory>${project.build.outputDirectory}</classesDirectory> | ||
<runOrder>alphabetical</runOrder> | ||
<reportsDirectory>${junit.itReportFolder}</reportsDirectory> | ||
<includes> | ||
<include>**/*IT*</include> | ||
<include>**/*IntTest*</include> | ||
<include>**/*IntegrationTest*</include> | ||
</includes> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>integration-test</id> | ||
<goals> | ||
<goal>integration-test</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<id>verify</id> | ||
<goals> | ||
<goal>verify</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>properties-maven-plugin</artifactId> | ||
<version>${properties-maven-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<phase>initialize</phase> | ||
<goals> | ||
<goal>read-project-properties</goal> | ||
</goals> | ||
<configuration> | ||
<files> | ||
<file>sonar-project.properties</file> | ||
</files> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.diffplug.spotless</groupId> | ||
<artifactId>spotless-maven-plugin</artifactId> | ||
<version>${spotless.version}</version> | ||
<configuration> | ||
<java> | ||
<palantirJavaFormat> | ||
<version>2.38.0</version> | ||
</palantirJavaFormat> | ||
<importOrder /> | ||
<removeUnusedImports /> | ||
<formatAnnotations /> | ||
</java> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.jacoco</groupId> | ||
<artifactId>jacoco-maven-plugin</artifactId> | ||
<version>${jacoco-maven-plugin.version}</version> | ||
<configuration> | ||
<dataFile>${project.build.directory}/jacoco/test/jacoco.exec</dataFile> | ||
<rules> | ||
<rule> | ||
<element>BUNDLE</element> | ||
<limits> | ||
<limit> | ||
<counter>COMPLEXITY</counter> | ||
<value>COVEREDRATIO</value> | ||
<minimum>${jacoco.minimum.coverage}</minimum> | ||
</limit> | ||
</limits> | ||
</rule> | ||
</rules> | ||
<excludes> | ||
<exclude>**/*Application.*</exclude> | ||
<exclude>**/config/**</exclude> | ||
<exclude>**/models/*</exclude> | ||
<exclude>**/dtos/*</exclude> | ||
<exclude>**/exceptions/*</exclude> | ||
<exclude>**/*Constants*</exclude> | ||
</excludes> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>pre-unit-tests</id> | ||
<goals> | ||
<goal>prepare-agent</goal> | ||
</goals> | ||
<configuration> | ||
<!-- Sets the path to the file which contains the execution data. --> | ||
<destFile>${jacoco.utReportFile}</destFile> | ||
</configuration> | ||
</execution> | ||
<!-- Ensures that the code coverage report for unit tests is created after unit tests have been run --> | ||
<execution> | ||
<id>post-unit-test</id> | ||
<phase>test</phase> | ||
<goals> | ||
<goal>report</goal> | ||
</goals> | ||
<configuration> | ||
<dataFile>${jacoco.utReportFile}</dataFile> | ||
<outputDirectory>${jacoco.utReportFolder}</outputDirectory> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>pre-integration-tests</id> | ||
<goals> | ||
<goal>prepare-agent-integration</goal> | ||
</goals> | ||
<configuration> | ||
<!-- Sets the path to the file which contains the execution data. --> | ||
<destFile>${jacoco.itReportFile}</destFile> | ||
</configuration> | ||
</execution> | ||
<!-- Ensures that the code coverage report for integration tests is created after integration tests have been run --> | ||
<execution> | ||
<id>post-integration-tests</id> | ||
<phase>post-integration-test</phase> | ||
<goals> | ||
<goal>report-integration</goal> | ||
</goals> | ||
<configuration> | ||
<dataFile>${jacoco.itReportFile}</dataFile> | ||
<outputDirectory>${jacoco.itReportFolder}</outputDirectory> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.owasp</groupId> | ||
<artifactId>dependency-check-maven</artifactId> | ||
<version>${dependency-check-maven.version}</version> | ||
<configuration> | ||
<failOnError>false</failOnError> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonarsource.scanner.maven</groupId> | ||
<artifactId>sonar-maven-plugin</artifactId> | ||
<version>${sonar-maven-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>sonar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |