|
| 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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + <parent> |
| 6 | + <groupId>io.spring.javaformat</groupId> |
| 7 | + <artifactId>spring-javaformat-build</artifactId> |
| 8 | + <version>0.0.48-SNAPSHOT</version> |
| 9 | + </parent> |
| 10 | + <artifactId>spring-javaformat-cli</artifactId> |
| 11 | + <name>Spring JavaFormat CLI</name> |
| 12 | + <properties> |
| 13 | + <main.basedir>${basedir}/..</main.basedir> |
| 14 | + <maven.compiler.source>17</maven.compiler.source> |
| 15 | + <maven.compiler.target>17</maven.compiler.target> |
| 16 | + <java.version>17</java.version> |
| 17 | + </properties> |
| 18 | + |
| 19 | + <dependencyManagement> |
| 20 | + <dependencies> |
| 21 | + <dependency> |
| 22 | + <groupId>org.springframework.boot</groupId> |
| 23 | + <artifactId>spring-boot-dependencies</artifactId> |
| 24 | + <version>${spring-boot.version}</version> |
| 25 | + <type>pom</type> |
| 26 | + <scope>import</scope> |
| 27 | + </dependency> |
| 28 | + </dependencies> |
| 29 | + </dependencyManagement> |
| 30 | + |
| 31 | + <dependencies> |
| 32 | + <!-- Compile --> |
| 33 | + <dependency> |
| 34 | + <groupId>org.jspecify</groupId> |
| 35 | + <artifactId>jspecify</artifactId> |
| 36 | + </dependency> |
| 37 | + <dependency> |
| 38 | + <groupId>io.spring.javaformat</groupId> |
| 39 | + <artifactId>spring-javaformat-formatter</artifactId> |
| 40 | + <version>${project.version}</version> |
| 41 | + </dependency> |
| 42 | + <dependency> |
| 43 | + <groupId>io.spring.javaformat</groupId> |
| 44 | + <artifactId>spring-javaformat-formatter-eclipse-runtime</artifactId> |
| 45 | + <version>${project.version}</version> |
| 46 | + <exclusions> |
| 47 | + <exclusion> |
| 48 | + <groupId>*</groupId> |
| 49 | + <artifactId>*</artifactId> |
| 50 | + </exclusion> |
| 51 | + </exclusions> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>io.spring.javaformat</groupId> |
| 55 | + <artifactId>spring-javaformat-config</artifactId> |
| 56 | + <version>${project.version}</version> |
| 57 | + </dependency> |
| 58 | + <dependency> |
| 59 | + <groupId>io.spring.javaformat</groupId> |
| 60 | + <artifactId>spring-javaformat-checkstyle</artifactId> |
| 61 | + <version>${project.version}</version> |
| 62 | + </dependency> |
| 63 | + <dependency> |
| 64 | + <groupId>org.springframework.experimental</groupId> |
| 65 | + <artifactId>spring-native</artifactId> |
| 66 | + </dependency> |
| 67 | + <dependency> |
| 68 | + <groupId>info.picocli</groupId> |
| 69 | + <artifactId>picocli-spring-boot-starter</artifactId> |
| 70 | + </dependency> |
| 71 | + <dependency> |
| 72 | + <groupId>org.codehaus.plexus</groupId> |
| 73 | + <artifactId>plexus-utils</artifactId> |
| 74 | + </dependency> |
| 75 | + |
| 76 | + <!-- Test --> |
| 77 | + <dependency> |
| 78 | + <groupId>org.springframework.boot</groupId> |
| 79 | + <artifactId>spring-boot-starter-test</artifactId> |
| 80 | + <scope>test</scope> |
| 81 | + </dependency> |
| 82 | + </dependencies> |
| 83 | + |
| 84 | + <build> |
| 85 | + <plugins> |
| 86 | + <plugin> |
| 87 | + <groupId>org.apache.maven.plugins</groupId> |
| 88 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 89 | + <configuration> |
| 90 | + <source>${java.version}</source> |
| 91 | + </configuration> |
| 92 | + </plugin> |
| 93 | + <plugin> |
| 94 | + <groupId>org.apache.maven.plugins</groupId> |
| 95 | + <artifactId>maven-compiler-plugin</artifactId> |
| 96 | + <configuration> |
| 97 | + <parameters>true</parameters> |
| 98 | + <compilerArgs> |
| 99 | + <arg>-XDcompilePolicy=simple</arg> |
| 100 | + <arg>-XDaddTypeAnnotationsToSymbol=true</arg> |
| 101 | + <!-- Required by Error Prone 2.42.x on newer javac versions --> |
| 102 | + <arg>-XDshould-stop.ifError=FLOW</arg> |
| 103 | + <arg>-Xplugin:ErrorProne -XepDisableWarningsInGeneratedCode -Xep:NullAway:ERROR -XepOpt:NullAway:JSpecifyMode=true -XepOpt:NullAway:OnlyNullMarked=true -XepOpt:NullAway:ExternalInitAnnotations=io.spring.javaformat.cli.PicocliManaged</arg> |
| 104 | + <arg>-Aproject=${project.groupId}/${project.artifactId}</arg> |
| 105 | + </compilerArgs> |
| 106 | + <annotationProcessorPaths> |
| 107 | + <path> |
| 108 | + <groupId>info.picocli</groupId> |
| 109 | + <artifactId>picocli-codegen</artifactId> |
| 110 | + <version>4.7.7</version> |
| 111 | + </path> |
| 112 | + <!-- 2.42.0 is the last version compiled for Java 17; 2.43.0+ requires Java 21 --> |
| 113 | + <path> |
| 114 | + <groupId>com.google.errorprone</groupId> |
| 115 | + <artifactId>error_prone_core</artifactId> |
| 116 | + <version>2.42.0</version> |
| 117 | + </path> |
| 118 | + <!-- 0.12.11 is compatible with Error Prone 2.42.0 --> |
| 119 | + <path> |
| 120 | + <groupId>com.uber.nullaway</groupId> |
| 121 | + <artifactId>nullaway</artifactId> |
| 122 | + <version>0.12.11</version> |
| 123 | + </path> |
| 124 | + </annotationProcessorPaths> |
| 125 | + </configuration> |
| 126 | + </plugin> |
| 127 | + <plugin> |
| 128 | + <groupId>org.springframework.experimental</groupId> |
| 129 | + <artifactId>spring-aot-maven-plugin</artifactId> |
| 130 | + <executions> |
| 131 | + <execution> |
| 132 | + <id>generate</id> |
| 133 | + <goals> |
| 134 | + <goal>generate</goal> |
| 135 | + </goals> |
| 136 | + </execution> |
| 137 | + </executions> |
| 138 | + </plugin> |
| 139 | + <plugin> |
| 140 | + <groupId>org.springframework.boot</groupId> |
| 141 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 142 | + <configuration> |
| 143 | + <classifier>exec</classifier> |
| 144 | + </configuration> |
| 145 | + <executions> |
| 146 | + <execution> |
| 147 | + <goals> |
| 148 | + <goal>repackage</goal> |
| 149 | + </goals> |
| 150 | + </execution> |
| 151 | + </executions> |
| 152 | + </plugin> |
| 153 | + </plugins> |
| 154 | + </build> |
| 155 | + |
| 156 | + <profiles> |
| 157 | + <profile> |
| 158 | + <id>native</id> |
| 159 | + <build> |
| 160 | + <plugins> |
| 161 | + <plugin> |
| 162 | + <groupId>org.graalvm.buildtools</groupId> |
| 163 | + <artifactId>native-maven-plugin</artifactId> |
| 164 | + <version>0.9.28</version> |
| 165 | + <extensions>true</extensions> |
| 166 | + <executions> |
| 167 | + <execution> |
| 168 | + <id>build-native</id> |
| 169 | + <phase>package</phase> |
| 170 | + <goals> |
| 171 | + <goal>build</goal> |
| 172 | + </goals> |
| 173 | + </execution> |
| 174 | + </executions> |
| 175 | + <configuration> |
| 176 | + <mainClass>io.spring.javaformat.cli.SpringJavaFormatCliApplication</mainClass> |
| 177 | + <buildArgs> |
| 178 | + <buildArg>--no-fallback</buildArg> |
| 179 | + <buildArg>--allow-incomplete-classpath</buildArg> |
| 180 | + <buildArg>--initialize-at-build-time=org.springframework.core.annotation.RepeatableContainers,org.springframework.core.annotation.RepeatableContainers$NoRepeatableContainers,org.springframework.core.annotation.TypeMappedAnnotations</buildArg> |
| 181 | + <buildArg>--initialize-at-build-time=io.spring.javaformat.eclipse.jdt.jdk17.internal.compiler</buildArg> |
| 182 | + </buildArgs> |
| 183 | + </configuration> |
| 184 | + </plugin> |
| 185 | + </plugins> |
| 186 | + </build> |
| 187 | + </profile> |
| 188 | + </profiles> |
| 189 | + |
| 190 | + <repositories> |
| 191 | + <repository> |
| 192 | + <id>spring-milestones</id> |
| 193 | + <name>Spring Milestones</name> |
| 194 | + <url>https://repo.spring.io/milestone</url> |
| 195 | + <snapshots> |
| 196 | + <enabled>false</enabled> |
| 197 | + </snapshots> |
| 198 | + </repository> |
| 199 | + </repositories> |
| 200 | + <pluginRepositories> |
| 201 | + <pluginRepository> |
| 202 | + <id>spring-milestones</id> |
| 203 | + <name>Spring Milestones</name> |
| 204 | + <url>https://repo.spring.io/milestone</url> |
| 205 | + <snapshots> |
| 206 | + <enabled>false</enabled> |
| 207 | + </snapshots> |
| 208 | + </pluginRepository> |
| 209 | + </pluginRepositories> |
| 210 | + |
| 211 | +</project> |
0 commit comments