Skip to content

Commit 170063f

Browse files
committed
chore: clean up parent pom.xml
- Define the `spring-javaformat-checkstyle.version` property in <properties> - Format the `maven-gpg-plugin` plugin in the `sonatype` profile Signed-off-by: guanxu <[email protected]>
1 parent 673f483 commit 170063f

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

pom.xml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@
358358
<maven-checkstyle-plugin.failsOnError>true</maven-checkstyle-plugin.failsOnError>
359359
<maven-checkstyle-plugin.failOnViolation>true</maven-checkstyle-plugin.failOnViolation>
360360
<puppycrawl-tools-checkstyle.version>9.3</puppycrawl-tools-checkstyle.version>
361+
<spring-javaformat-checkstyle.version>0.0.43</spring-javaformat-checkstyle.version>
361362
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
362363

363364
<disable.checks>false</disable.checks>
@@ -393,7 +394,7 @@
393394
<dependency>
394395
<groupId>io.spring.javaformat</groupId>
395396
<artifactId>spring-javaformat-checkstyle</artifactId>
396-
<version>0.0.43</version>
397+
<version>${spring-javaformat-checkstyle.version}</version>
397398
</dependency>
398399
</dependencies>
399400
<executions>
@@ -892,23 +893,23 @@
892893
</properties>
893894
<build>
894895
<plugins>
895-
<plugin>
896-
<groupId>org.apache.maven.plugins</groupId>
897-
<artifactId>maven-gpg-plugin</artifactId>
898-
<version>${maven-gpg-plugin.version}</version>
899-
<executions>
900-
<execution>
901-
<id>sign-artifacts</id>
902-
<phase>verify</phase>
903-
<goals>
904-
<goal>sign</goal>
905-
</goals>
906-
</execution>
907-
</executions>
908-
<configuration>
909-
<!-- Passphrase consumed from MAVEN_GPG_PASSPHRASE environment variable. -->
910-
</configuration>
911-
</plugin>
896+
<plugin>
897+
<groupId>org.apache.maven.plugins</groupId>
898+
<artifactId>maven-gpg-plugin</artifactId>
899+
<version>${maven-gpg-plugin.version}</version>
900+
<executions>
901+
<execution>
902+
<id>sign-artifacts</id>
903+
<phase>verify</phase>
904+
<goals>
905+
<goal>sign</goal>
906+
</goals>
907+
</execution>
908+
</executions>
909+
<configuration>
910+
<!-- Passphrase consumed from MAVEN_GPG_PASSPHRASE environment variable. -->
911+
</configuration>
912+
</plugin>
912913
<plugin>
913914
<groupId>org.sonatype.central</groupId>
914915
<artifactId>central-publishing-maven-plugin</artifactId>

0 commit comments

Comments
 (0)