|
176 | 176 | <artifactId>maven-antrun-plugin</artifactId> |
177 | 177 | <version>1.8</version> |
178 | 178 | <executions> |
179 | | - <!--<execution> |
| 179 | + <!-- |
| 180 | + Disabled because of https://github.com/pinterest/ktlint/issues/1039 |
| 181 | + <execution> |
180 | 182 | <id>ktlint-format-generated</id> |
181 | 183 | <phase>process-sources</phase> |
182 | 184 | <configuration> |
183 | 185 | <target name="ktlint"> |
184 | | - <java taskname="ktlint" dir="${basedir}" fork="false" failonerror="true" |
| 186 | + <java taskname="ktlint" dir="${basedir}" fork="true" failonerror="true" |
185 | 187 | classpathref="maven.plugin.classpath" classname="com.pinterest.ktlint.Main"> |
186 | 188 | <arg value="-F"/> |
187 | 189 | <arg value="src/gen/**/*.kt"/> |
|
196 | 198 | <id>ktlint-format</id> |
197 | 199 | <configuration> |
198 | 200 | <target name="ktlint"> |
199 | | - <java taskname="ktlint" dir="${basedir}" fork="false" failonerror="true" |
| 201 | + <java taskname="ktlint" dir="${basedir}" fork="true" failonerror="true" |
200 | 202 | classpathref="maven.plugin.classpath" classname="com.pinterest.ktlint.Main"> |
201 | 203 | <arg value="-F"/> |
202 | 204 | <arg value="src/**/*.kt"/> |
|
208 | 210 | <goal>run</goal> |
209 | 211 | </goals> |
210 | 212 | </execution> |
211 | | - <!--<execution> |
| 213 | + <execution> |
212 | 214 | <id>ktlint</id> |
213 | 215 | <phase>process-sources</phase> |
214 | 216 | <configuration> |
215 | 217 | <target name="ktlint"> |
216 | | - <java taskname="ktlint" dir="${basedir}" fork="false" failonerror="true" |
| 218 | + <java taskname="ktlint" dir="${basedir}" fork="true" failonerror="true" |
217 | 219 | classpathref="maven.plugin.classpath" classname="com.pinterest.ktlint.Main"> |
218 | 220 | <arg value="src/**/*.kt"/> |
219 | 221 | <arg value="!src/gen/**/*.kt"/> |
220 | | - <arg value="--reporter=plain?group_by_file"/> |
| 222 | + <arg value="--reporter=plain?group_by_file"/> |
221 | 223 | </java> |
222 | 224 | </target> |
223 | 225 | </configuration> |
224 | 226 | <goals> |
225 | 227 | <goal>run</goal> |
226 | 228 | </goals> |
227 | | - </execution>--> |
| 229 | + </execution> |
228 | 230 | </executions> |
229 | 231 | <dependencies> |
230 | 232 | <dependency> |
231 | 233 | <groupId>com.pinterest</groupId> |
232 | 234 | <artifactId>ktlint</artifactId> |
233 | | - <version>0.40.0</version> |
| 235 | + <version>0.39.0</version> |
234 | 236 | </dependency> |
235 | 237 | <!-- additional 3rd party ruleset(s) can be specified here --> |
236 | 238 | </dependencies> |
|
0 commit comments