1 <?xml version="1.0" encoding="UTF-8"?>
  2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4   <modelVersion>4.0.0</modelVersion>
  5   <groupId>example.micronaut</groupId>
  6   <artifactId>default</artifactId>
  7   <version>0.1</version>
  8   <packaging>${packaging}</packaging>
  9 
 10   <parent>
 11     <groupId>io.micronaut.platform</groupId>
 12     <artifactId>micronaut-parent</artifactId>
 13     <version>4.4.0</version>
 14   </parent>
 15   <properties>
 16     <packaging>jar</packaging>
 17     <jdk.version>17</jdk.version>
 18     <release.version>17</release.version>
 19     <micronaut.version>4.4.0</micronaut.version>
 20     <micronaut.runtime>netty</micronaut.runtime>
 21     <micronaut.aot.enabled>false</micronaut.aot.enabled>
 22     <micronaut.aot.packageName>example.micronaut.aot.generated</micronaut.aot.packageName>
 23     <exec.mainClass>example.micronaut.Application</exec.mainClass>
 24   </properties>
 25 
 26   <repositories>
 27     <repository>
 28       <id>central</id>
 29       <url>https://repo.maven.apache.org/maven2</url>
 30     </repository>
 31   </repositories>
 32 
 33   <dependencies>
 34     <dependency>
 35       <groupId>io.micronaut</groupId>
 36       <artifactId>micronaut-http-server-netty</artifactId>
 37       <scope>compile</scope>
 38     </dependency>
 39     <dependency>
 40       <groupId>io.micronaut.serde</groupId>
 41       <artifactId>micronaut-serde-jackson</artifactId>
 42       <scope>compile</scope>
 43     </dependency>
 44     <dependency>
 45       <groupId>ch.qos.logback</groupId>
 46       <artifactId>logback-classic</artifactId>
 47       <scope>runtime</scope>
 48     </dependency>
 49     <dependency>
 50       <groupId>io.micronaut</groupId>
 51       <artifactId>micronaut-http-client</artifactId>
 52       <scope>test</scope>
 53     </dependency>
 54     <dependency>
 55       <groupId>io.micronaut.test</groupId>
 56       <artifactId>micronaut-test-junit5</artifactId>
 57       <scope>test</scope>
 58     </dependency>
 59     <dependency>
 60       <groupId>org.junit.jupiter</groupId>
 61       <artifactId>junit-jupiter-api</artifactId>
 62       <scope>test</scope>
 63     </dependency>
 64     <dependency>
 65       <groupId>org.junit.jupiter</groupId>
 66       <artifactId>junit-jupiter-engine</artifactId>
 67       <scope>test</scope>
 68     </dependency>
 69   </dependencies>
 70   <build>
 71     <plugins>
 72       <plugin>
 73         <groupId>io.micronaut.maven</groupId>
 74         <artifactId>micronaut-maven-plugin</artifactId>
 75         <configuration>
 76           <configFile>aot-${packaging}.properties</configFile>
 77         </configuration>
 78       </plugin>
 79       <plugin>
 80         <groupId>com.diffplug.spotless</groupId>
 81         <artifactId>spotless-maven-plugin</artifactId>
 82         <version>2.41.1</version>
 83         <configuration>
 84           <java>
 85               <licenseHeader>
 86                   <file>${project.basedir}/LICENSEHEADER</file>
 87               </licenseHeader>
 88           </java>
 89         </configuration>
 90       </plugin>
 91       <plugin>
 92         <groupId>org.apache.maven.plugins</groupId>
 93         <artifactId>maven-enforcer-plugin</artifactId>
 94       </plugin>
 95       <plugin>
 96         <groupId>org.apache.maven.plugins</groupId>
 97         <artifactId>maven-compiler-plugin</artifactId>
 98         <configuration>
 99           <!-- Uncomment to enable incremental compilation -->
100           <!-- <useIncrementalCompilation>false</useIncrementalCompilation> -->
101 
102           <annotationProcessorPaths combine.children="append">
103             <path>
104               <groupId>io.micronaut</groupId>
105               <artifactId>micronaut-http-validation</artifactId>
106               <version>${micronaut.core.version}</version>
107             </path>
108             <path>
109               <groupId>io.micronaut.serde</groupId>
110               <artifactId>micronaut-serde-processor</artifactId>
111               <version>${micronaut.serialization.version}</version>
112               <exclusions>
113                 <exclusion>
114                   <groupId>io.micronaut</groupId>
115                   <artifactId>micronaut-inject</artifactId>
116                 </exclusion>
117               </exclusions>
118             </path>
119           </annotationProcessorPaths>
120           <compilerArgs>
121             <arg>-Amicronaut.processing.group=example.micronaut</arg>
122             <arg>-Amicronaut.processing.module=default</arg>
123           </compilerArgs>
124         </configuration>
125       </plugin>
126     </plugins>
127   </build>
128 
129 </project>