|
45 | 45 | </scm> |
46 | 46 | <properties> |
47 | 47 | <jreleaser-maven-plugin.version>1.20.0</jreleaser-maven-plugin.version> |
| 48 | + <sonar-maven-plugin.version>5.1.0.4751</sonar-maven-plugin.version> |
| 49 | + <prettier-java.version>2.1.0</prettier-java.version> |
| 50 | + <prettier-maven-plugin.version>0.22</prettier-maven-plugin.version> |
| 51 | + <plugin.prettier.goal>write</plugin.prettier.goal> |
48 | 52 | </properties> |
49 | 53 | <build> |
50 | 54 | <plugins> |
|
90 | 94 | </jreleaser> |
91 | 95 | </configuration> |
92 | 96 | </plugin> |
| 97 | + <plugin> |
| 98 | + <groupId>com.hubspot.maven.plugins</groupId> |
| 99 | + <artifactId>prettier-maven-plugin</artifactId> |
| 100 | + <version>${prettier-maven-plugin.version}</version> |
| 101 | + <configuration> |
| 102 | + <prettierJavaVersion>${prettier-java.version}</prettierJavaVersion> |
| 103 | + </configuration> |
| 104 | + <executions> |
| 105 | + <execution> |
| 106 | + <phase>validate</phase> |
| 107 | + <goals> |
| 108 | + <goal>${plugin.prettier.goal}</goal> |
| 109 | + </goals> |
| 110 | + </execution> |
| 111 | + </executions> |
| 112 | + </plugin> |
93 | 113 | </plugins> |
94 | 114 | </build> |
95 | 115 | <profiles> |
96 | | - <profile> |
97 | | - <id>sonar</id> |
98 | | - <activation> |
99 | | - <activeByDefault>false</activeByDefault> |
100 | | - </activation> |
101 | | - |
102 | | - <properties> |
103 | | - <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version> |
104 | | - </properties> |
105 | | - |
106 | | - <build> |
107 | | - <plugins> |
108 | | - <plugin> |
109 | | - <groupId>org.sonarsource.scanner.maven</groupId> |
110 | | - <artifactId>sonar-maven-plugin</artifactId> |
111 | | - <version>${sonar-maven-plugin.version}</version> |
112 | | - </plugin> |
113 | | - </plugins> |
114 | | - </build> |
115 | | - </profile> |
116 | 116 | <profile> |
117 | 117 | <id>publication</id> |
118 | 118 | <properties> |
|
154 | 154 | </plugins> |
155 | 155 | </build> |
156 | 156 | </profile> |
| 157 | + <profile> |
| 158 | + <id>sonar</id> |
| 159 | + <activation> |
| 160 | + <activeByDefault>false</activeByDefault> |
| 161 | + </activation> |
| 162 | + <build> |
| 163 | + <plugins> |
| 164 | + <plugin> |
| 165 | + <groupId>org.sonarsource.scanner.maven</groupId> |
| 166 | + <artifactId>sonar-maven-plugin</artifactId> |
| 167 | + <version>${sonar-maven-plugin.version}</version> |
| 168 | + </plugin> |
| 169 | + <plugin> |
| 170 | + <groupId>com.hubspot.maven.plugins</groupId> |
| 171 | + <artifactId>prettier-maven-plugin</artifactId> |
| 172 | + <version>${prettier-maven-plugin.version}</version> |
| 173 | + <configuration> |
| 174 | + <skip>true</skip> |
| 175 | + </configuration> |
| 176 | + </plugin> |
| 177 | + </plugins> |
| 178 | + </build> |
| 179 | + </profile> |
| 180 | + <profile> |
| 181 | + <id>prettierCheck</id> |
| 182 | + <properties> |
| 183 | + <!-- In the CI environment we want to validate that code is formatted --> |
| 184 | + <plugin.prettier.goal>check</plugin.prettier.goal> |
| 185 | + </properties> |
| 186 | + </profile> |
157 | 187 | </profiles> |
158 | 188 | </project> |
0 commit comments