| 
68 | 68 | 
 
  | 
69 | 69 | 	<properties>  | 
70 | 70 | 		<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>  | 
 | 71 | +		<spring-javaformat-maven-plugin.version>0.0.43</spring-javaformat-maven-plugin.version>  | 
 | 72 | +		<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>  | 
 | 73 | +		<maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>  | 
 | 74 | +		<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>  | 
 | 75 | +		<maven-failsafe-plugin.version>3.5.2</maven-failsafe-plugin.version>  | 
 | 76 | +		<maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version>  | 
 | 77 | +		<maven-site-plugin.version>4.0.0-M13</maven-site-plugin.version>  | 
 | 78 | +		<maven-source-plugin.version>3.3.0</maven-source-plugin.version>  | 
 | 79 | +		<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>  | 
 | 80 | +		<maven-checkstyle-plugin.version>3.5.0</maven-checkstyle-plugin.version>  | 
 | 81 | +		<maven-checkstyle-plugin.failsOnError>true</maven-checkstyle-plugin.failsOnError>  | 
 | 82 | +		<maven-checkstyle-plugin.failOnViolation>true</maven-checkstyle-plugin.failOnViolation>  | 
 | 83 | +		<puppycrawl-tools-checkstyle.version>9.3</puppycrawl-tools-checkstyle.version>  | 
 | 84 | +		<disable.checks>true</disable.checks>  | 
71 | 85 | 	</properties>  | 
72 | 86 | 
 
  | 
73 | 87 |     <dependencyManagement>  | 
 | 
1096 | 1110 | 		</repository>  | 
1097 | 1111 | 	</repositories>  | 
1098 | 1112 | 
 
  | 
1099 |  | -    <build>  | 
1100 |  | -        <plugins>  | 
1101 |  | -            <plugin>  | 
1102 |  | -                <groupId>org.codehaus.mojo</groupId>  | 
1103 |  | -                <artifactId>flatten-maven-plugin</artifactId>  | 
1104 |  | -                <version>${flatten-maven-plugin.version}</version>  | 
1105 |  | -                <executions>  | 
1106 |  | -                    <execution>  | 
1107 |  | -                        <id>flatten</id>  | 
1108 |  | -                        <phase>process-resources</phase>  | 
1109 |  | -                        <goals>  | 
1110 |  | -                            <goal>flatten</goal>  | 
1111 |  | -                        </goals>  | 
1112 |  | -                        <configuration>  | 
1113 |  | -                            <updatePomFile>true</updatePomFile>  | 
1114 |  | -                            <flattenMode>ossrh</flattenMode>  | 
1115 |  | -                            <pomElements>  | 
1116 |  | -                                <distributionManagement>remove</distributionManagement>  | 
1117 |  | -                                <dependencyManagement>keep</dependencyManagement>  | 
1118 |  | -                                <repositories>remove</repositories>  | 
1119 |  | -                                <scm>keep</scm>  | 
1120 |  | -                                <url>keep</url>  | 
1121 |  | -                                <organization>resolve</organization>  | 
1122 |  | -                            </pomElements>  | 
1123 |  | -                        </configuration>  | 
1124 |  | -                    </execution>  | 
1125 |  | -                    <execution>  | 
1126 |  | -                        <id>clean</id>  | 
1127 |  | -                        <phase>clean</phase>  | 
1128 |  | -                        <goals>  | 
1129 |  | -                            <goal>clean</goal>  | 
1130 |  | -                        </goals>  | 
1131 |  | -                    </execution>  | 
1132 |  | -                </executions>  | 
1133 |  | -            </plugin>  | 
1134 |  | -        </plugins>  | 
1135 |  | -    </build>  | 
 | 1113 | +	<build>  | 
 | 1114 | +		<plugins>  | 
 | 1115 | +			<plugin>  | 
 | 1116 | +				<groupId>io.spring.javaformat</groupId>  | 
 | 1117 | +				<artifactId>spring-javaformat-maven-plugin</artifactId>  | 
 | 1118 | +				<version>${spring-javaformat-maven-plugin.version}</version>  | 
 | 1119 | +				<executions>  | 
 | 1120 | +					<execution>  | 
 | 1121 | +						<phase>validate</phase>  | 
 | 1122 | +						<inherited>true</inherited>  | 
 | 1123 | +						<goals>  | 
 | 1124 | +							<goal>validate</goal>  | 
 | 1125 | +						</goals>  | 
 | 1126 | +					</execution>  | 
 | 1127 | +				</executions>  | 
 | 1128 | +			</plugin>  | 
 | 1129 | +			<plugin>  | 
 | 1130 | +				<groupId>org.apache.maven.plugins</groupId>  | 
 | 1131 | +				<artifactId>maven-checkstyle-plugin</artifactId>  | 
 | 1132 | +				<version>${maven-checkstyle-plugin.version}</version>  | 
 | 1133 | +				<dependencies>  | 
 | 1134 | +					<dependency>  | 
 | 1135 | +						<groupId>com.puppycrawl.tools</groupId>  | 
 | 1136 | +						<artifactId>checkstyle</artifactId>  | 
 | 1137 | +						<version>${puppycrawl-tools-checkstyle.version}</version>  | 
 | 1138 | +					</dependency>  | 
 | 1139 | +					<dependency>  | 
 | 1140 | +						<groupId>io.spring.javaformat</groupId>  | 
 | 1141 | +						<artifactId>spring-javaformat-checkstyle</artifactId>  | 
 | 1142 | +						<version>0.0.43</version>  | 
 | 1143 | +					</dependency>  | 
 | 1144 | +				</dependencies>  | 
 | 1145 | +				<executions>  | 
 | 1146 | +					<execution>  | 
 | 1147 | +						<id>checkstyle-validation</id>  | 
 | 1148 | +						<phase>validate</phase>  | 
 | 1149 | +						<inherited>true</inherited>  | 
 | 1150 | +						<configuration>  | 
 | 1151 | +							<skip>${disable.checks}</skip>  | 
 | 1152 | +							<configLocation>src/checkstyle/checkstyle.xml</configLocation>  | 
 | 1153 | +							<headerLocation>src/checkstyle/checkstyle-header.txt</headerLocation>  | 
 | 1154 | +							<includeTestSourceDirectory>true</includeTestSourceDirectory>  | 
 | 1155 | +							<propertyExpansion>  | 
 | 1156 | +								checkstyle.build.directory=${project.build.directory}  | 
 | 1157 | +								checkstyle.suppressions.file=${project.basedir}/src/checkstyle/checkstyle-suppressions.xml  | 
 | 1158 | +								checkstyle.additional.suppressions.file=${project.basedir}/src/checkstyle/checkstyle-suppressions.xml  | 
 | 1159 | +								checkstyle.header.file=${project.basedir}/src/checkstyle/checkstyle-header.txt  | 
 | 1160 | +							</propertyExpansion>  | 
 | 1161 | +							<consoleOutput>true</consoleOutput>  | 
 | 1162 | +							<failsOnError>${maven-checkstyle-plugin.failsOnError}  | 
 | 1163 | +							</failsOnError>  | 
 | 1164 | +							<failOnViolation>  | 
 | 1165 | +								${maven-checkstyle-plugin.failOnViolation}  | 
 | 1166 | +							</failOnViolation>  | 
 | 1167 | +						</configuration>  | 
 | 1168 | +						<goals>  | 
 | 1169 | +							<goal>check</goal>  | 
 | 1170 | +						</goals>  | 
 | 1171 | +					</execution>  | 
 | 1172 | +				</executions>  | 
 | 1173 | +			</plugin>  | 
 | 1174 | +			<plugin>  | 
 | 1175 | +				<groupId>org.apache.maven.plugins</groupId>  | 
 | 1176 | +				<artifactId>maven-site-plugin</artifactId>  | 
 | 1177 | +				<version>${maven-site-plugin.version}</version>  | 
 | 1178 | +			</plugin>  | 
 | 1179 | +			<plugin>  | 
 | 1180 | +				<groupId>org.apache.maven.plugins</groupId>  | 
 | 1181 | +				<artifactId>maven-compiler-plugin</artifactId>  | 
 | 1182 | +				<version>${maven-compiler-plugin.version}</version>  | 
 | 1183 | +				<configuration>  | 
 | 1184 | +					<release>${java.version}</release>  | 
 | 1185 | +					<compilerArgs>  | 
 | 1186 | +						<compilerArg>-parameters</compilerArg>  | 
 | 1187 | +					</compilerArgs>  | 
 | 1188 | +				</configuration>  | 
 | 1189 | +				<executions>  | 
 | 1190 | +					<!-- Replacing default-compile as it is treated specially by Maven -->  | 
 | 1191 | +					<execution>  | 
 | 1192 | +						<id>default-compile</id>  | 
 | 1193 | +						<phase>none</phase>  | 
 | 1194 | +					</execution>  | 
 | 1195 | +					<!-- Replacing default-testCompile as it is treated specially by Maven -->  | 
 | 1196 | +					<execution>  | 
 | 1197 | +						<id>default-testCompile</id>  | 
 | 1198 | +						<phase>none</phase>  | 
 | 1199 | +					</execution>  | 
 | 1200 | +					<execution>  | 
 | 1201 | +						<id>java-compile</id>  | 
 | 1202 | +						<phase>compile</phase>  | 
 | 1203 | +						<goals>  | 
 | 1204 | +							<goal>compile</goal>  | 
 | 1205 | +						</goals>  | 
 | 1206 | +					</execution>  | 
 | 1207 | +					<execution>  | 
 | 1208 | +						<id>java-test-compile</id>  | 
 | 1209 | +						<phase>test-compile</phase>  | 
 | 1210 | +						<goals>  | 
 | 1211 | +							<goal>testCompile</goal>  | 
 | 1212 | +						</goals>  | 
 | 1213 | +					</execution>  | 
 | 1214 | +				</executions>  | 
 | 1215 | +			</plugin>  | 
 | 1216 | +			<plugin>  | 
 | 1217 | +				<groupId>org.apache.maven.plugins</groupId>  | 
 | 1218 | +				<artifactId>maven-surefire-plugin</artifactId>  | 
 | 1219 | +				<version>${maven-surefire-plugin.version}</version>  | 
 | 1220 | +				<configuration>  | 
 | 1221 | +					<argLine>${surefireArgLine}</argLine>  | 
 | 1222 | + | 
 | 1223 | +					<useFile>false</useFile>  | 
 | 1224 | +					<trimStackTrace>false</trimStackTrace>  | 
 | 1225 | + | 
 | 1226 | +					<!-- Show test timing information -->  | 
 | 1227 | +					<reportFormat>plain</reportFormat>  | 
 | 1228 | + | 
 | 1229 | +					<!-- Output test execution times in the logs -->  | 
 | 1230 | +					<redirectTestOutputToFile>false</redirectTestOutputToFile>  | 
 | 1231 | +				</configuration>  | 
 | 1232 | +			</plugin>  | 
 | 1233 | +			<plugin>  | 
 | 1234 | +				<groupId>org.apache.maven.plugins</groupId>  | 
 | 1235 | +				<artifactId>maven-jar-plugin</artifactId>  | 
 | 1236 | +				<version>${maven-jar-plugin.version}</version>  | 
 | 1237 | +				<configuration>  | 
 | 1238 | +					<archive>  | 
 | 1239 | +						<manifestEntries>  | 
 | 1240 | +							<Implementation-Title>${project.artifactId}</Implementation-Title>  | 
 | 1241 | +							<Implementation-Version>${project.version}</Implementation-Version>  | 
 | 1242 | +						</manifestEntries>  | 
 | 1243 | +					</archive>  | 
 | 1244 | +				</configuration>  | 
 | 1245 | +			</plugin>  | 
 | 1246 | +			<plugin>  | 
 | 1247 | +				<groupId>org.apache.maven.plugins</groupId>  | 
 | 1248 | +				<artifactId>maven-source-plugin</artifactId>  | 
 | 1249 | +				<version>${maven-source-plugin.version}</version>  | 
 | 1250 | +				<executions>  | 
 | 1251 | +					<execution>  | 
 | 1252 | +						<id>generate-sources</id>  | 
 | 1253 | +						<phase>package</phase>  | 
 | 1254 | +						<goals>  | 
 | 1255 | +							<goal>jar</goal>  | 
 | 1256 | +						</goals>  | 
 | 1257 | +					</execution>  | 
 | 1258 | +				</executions>  | 
 | 1259 | +			</plugin>  | 
 | 1260 | +			<plugin>  | 
 | 1261 | +				<groupId>org.codehaus.mojo</groupId>  | 
 | 1262 | +				<artifactId>flatten-maven-plugin</artifactId>  | 
 | 1263 | +				<version>${flatten-maven-plugin.version}</version>  | 
 | 1264 | +				<executions>  | 
 | 1265 | +					<execution>  | 
 | 1266 | +						<id>flatten</id>  | 
 | 1267 | +						<phase>process-resources</phase>  | 
 | 1268 | +						<goals>  | 
 | 1269 | +							<goal>flatten</goal>  | 
 | 1270 | +						</goals>  | 
 | 1271 | +						<configuration>  | 
 | 1272 | +							<updatePomFile>true</updatePomFile>  | 
 | 1273 | +							<flattenMode>ossrh</flattenMode>  | 
 | 1274 | +							<pomElements>  | 
 | 1275 | +								<distributionManagement>remove</distributionManagement>  | 
 | 1276 | +								<dependencyManagement>remove</dependencyManagement>  | 
 | 1277 | +								<repositories>remove</repositories>  | 
 | 1278 | +								<scm>keep</scm>  | 
 | 1279 | +								<url>keep</url>  | 
 | 1280 | +								<organization>resolve</organization>  | 
 | 1281 | +							</pomElements>  | 
 | 1282 | +						</configuration>  | 
 | 1283 | +					</execution>  | 
 | 1284 | +					<execution>  | 
 | 1285 | +						<id>clean</id>  | 
 | 1286 | +						<phase>clean</phase>  | 
 | 1287 | +						<goals>  | 
 | 1288 | +							<goal>clean</goal>  | 
 | 1289 | +						</goals>  | 
 | 1290 | +					</execution>  | 
 | 1291 | +				</executions>  | 
 | 1292 | +			</plugin>  | 
 | 1293 | +			<plugin>  | 
 | 1294 | +				<groupId>org.apache.maven.plugins</groupId>  | 
 | 1295 | +				<artifactId>maven-deploy-plugin</artifactId>  | 
 | 1296 | +				<version>${maven-deploy-plugin.version}</version>  | 
 | 1297 | +			</plugin>  | 
 | 1298 | +			<plugin>  | 
 | 1299 | +				<groupId>org.apache.maven.plugins</groupId>  | 
 | 1300 | +				<artifactId>maven-javadoc-plugin</artifactId>  | 
 | 1301 | +				<version>${maven-javadoc-plugin.version}</version>  | 
 | 1302 | +				<configuration>  | 
 | 1303 | +					<overview>  | 
 | 1304 | +						${project.basedir}/spring-ai-docs/src/main/javadoc/overview.html</overview>  | 
 | 1305 | +					<detectJavaApiLink>false</detectJavaApiLink>  | 
 | 1306 | +					<failOnError>false</failOnError>  | 
 | 1307 | +					<doclint>none</doclint>  | 
 | 1308 | +				</configuration>  | 
 | 1309 | +				<executions>  | 
 | 1310 | +					<execution>  | 
 | 1311 | +						<id>generate-javadocs</id>  | 
 | 1312 | +						<phase>package</phase>  | 
 | 1313 | +						<goals>  | 
 | 1314 | +							<goal>jar</goal>  | 
 | 1315 | +						</goals>  | 
 | 1316 | +					</execution>  | 
 | 1317 | +				</executions>  | 
 | 1318 | +			</plugin>  | 
 | 1319 | + | 
 | 1320 | +		</plugins>  | 
 | 1321 | +	</build>  | 
1136 | 1322 | 
 
  | 
1137 | 1323 | 	<profiles>  | 
1138 | 1324 | 		<profile>  | 
 | 
0 commit comments