Created
June 8, 2023 17:05
-
-
Save lmonkiewicz/56e94fae5334a4ed699862783a269cc4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?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 https://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.0.6</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> | |
<groupId>pl.effectivedev.example</groupId> | |
<artifactId>orders-service</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>orders-service</name> | |
<description>orders-service</description> | |
<properties> | |
<java.version>17</java.version> | |
<spring-cloud.version>2022.0.2</spring-cloud.version> | |
<org.mapstruct.version>1.5.3.Final</org.mapstruct.version> | |
<spotless.version>2.36.0</spotless.version> | |
<palantir.version>2.30.0</palantir.version> | |
</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-data-jpa</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.micrometer</groupId> | |
<artifactId>micrometer-tracing-bridge-brave</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-stream</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-stream-binder-kafka</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.confluent</groupId> | |
<artifactId>kafka-avro-serializer</artifactId> | |
<version>7.3.0</version> | |
</dependency> | |
<dependency> | |
<groupId>org.mapstruct</groupId> | |
<artifactId>mapstruct</artifactId> | |
<version>${org.mapstruct.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.h2database</groupId> | |
<artifactId>h2</artifactId> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<optional>true</optional> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-test</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-stream-test-binder</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> | |
<configuration> | |
<excludes> | |
<exclude> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
</exclude> | |
</excludes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.avro</groupId> | |
<artifactId>avro-maven-plugin</artifactId> | |
<version>1.11.1</version> | |
<configuration> | |
<gettersReturnOptional>true</gettersReturnOptional> | |
<optionalGettersForNullableFieldsOnly>true</optionalGettersForNullableFieldsOnly> | |
<stringType>String</stringType> | |
<enableDecimalLogicalType>true</enableDecimalLogicalType> | |
</configuration> | |
<executions> | |
<execution> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>schema</goal> | |
<goal>idl-protocol</goal> | |
</goals> | |
<configuration> | |
<sourceDirectory>${project.basedir}/src/main/avro/</sourceDirectory> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>build-helper-maven-plugin</artifactId> | |
<version>3.2.0</version> | |
<executions> | |
<execution> | |
<id>add-source</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>add-source</goal> | |
</goals> | |
<configuration> | |
<sources> | |
<source>${project.build.directory}/generated-sources/avro/</source> | |
</sources> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.8.1</version> | |
<configuration> | |
<source>17</source> | |
<target>17</target> | |
<annotationProcessorPaths> | |
<path> | |
<groupId>org.mapstruct</groupId> | |
<artifactId>mapstruct-processor</artifactId> | |
<version>${org.mapstruct.version}</version> | |
</path> | |
<path> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok-mapstruct-binding</artifactId> | |
<version>0.2.0</version> | |
</path> | |
<!-- other annotation processors --> | |
<path> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>${lombok.version}</version> | |
</path> | |
</annotationProcessorPaths> | |
<compilerArgs> | |
<compilerArg> | |
-Amapstruct.defaultComponentModel=spring | |
</compilerArg> | |
</compilerArgs> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.diffplug.spotless</groupId> | |
<artifactId>spotless-maven-plugin</artifactId> | |
<version>${spotless.version}</version> | |
<configuration> | |
<java> | |
<palantirJavaFormat> | |
<version>${palantir.version}</version> | |
</palantirJavaFormat> | |
<indent> | |
<spaces>true</spaces> | |
<spacesPerTab>4</spacesPerTab> | |
</indent> | |
<importOrder /> | |
]] <removeUnusedImports /> | |
<formatAnnotations /> | |
</java> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<repositories> | |
<repository> | |
<id>confluent</id> | |
<url>https://packages.confluent.io/maven/</url> | |
</repository> | |
</repositories> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment