Skip to content

Commit 511d383

Browse files
committed
disable auto-format for now (ktlint bug)
Signed-off-by: Ryan Nett <[email protected]>
1 parent 8a5b35d commit 511d383

File tree

1 file changed

+10
-8
lines changed
  • tensorflow-core-kotlin/tensorflow-core-kotlin-api

1 file changed

+10
-8
lines changed

Diff for: tensorflow-core-kotlin/tensorflow-core-kotlin-api/pom.xml

+10-8
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,14 @@
176176
<artifactId>maven-antrun-plugin</artifactId>
177177
<version>1.8</version>
178178
<executions>
179-
<!--<execution>
179+
<!--
180+
Disabled because of https://github.com/pinterest/ktlint/issues/1039
181+
<execution>
180182
<id>ktlint-format-generated</id>
181183
<phase>process-sources</phase>
182184
<configuration>
183185
<target name="ktlint">
184-
<java taskname="ktlint" dir="${basedir}" fork="false" failonerror="true"
186+
<java taskname="ktlint" dir="${basedir}" fork="true" failonerror="true"
185187
classpathref="maven.plugin.classpath" classname="com.pinterest.ktlint.Main">
186188
<arg value="-F"/>
187189
<arg value="src/gen/**/*.kt"/>
@@ -196,7 +198,7 @@
196198
<id>ktlint-format</id>
197199
<configuration>
198200
<target name="ktlint">
199-
<java taskname="ktlint" dir="${basedir}" fork="false" failonerror="true"
201+
<java taskname="ktlint" dir="${basedir}" fork="true" failonerror="true"
200202
classpathref="maven.plugin.classpath" classname="com.pinterest.ktlint.Main">
201203
<arg value="-F"/>
202204
<arg value="src/**/*.kt"/>
@@ -208,29 +210,29 @@
208210
<goal>run</goal>
209211
</goals>
210212
</execution>
211-
<!--<execution>
213+
<execution>
212214
<id>ktlint</id>
213215
<phase>process-sources</phase>
214216
<configuration>
215217
<target name="ktlint">
216-
<java taskname="ktlint" dir="${basedir}" fork="false" failonerror="true"
218+
<java taskname="ktlint" dir="${basedir}" fork="true" failonerror="true"
217219
classpathref="maven.plugin.classpath" classname="com.pinterest.ktlint.Main">
218220
<arg value="src/**/*.kt"/>
219221
<arg value="!src/gen/**/*.kt"/>
220-
<arg value="&#45;&#45;reporter=plain?group_by_file"/>
222+
<arg value="--reporter=plain?group_by_file"/>
221223
</java>
222224
</target>
223225
</configuration>
224226
<goals>
225227
<goal>run</goal>
226228
</goals>
227-
</execution>-->
229+
</execution>
228230
</executions>
229231
<dependencies>
230232
<dependency>
231233
<groupId>com.pinterest</groupId>
232234
<artifactId>ktlint</artifactId>
233-
<version>0.40.0</version>
235+
<version>0.39.0</version>
234236
</dependency>
235237
<!-- additional 3rd party ruleset(s) can be specified here -->
236238
</dependencies>

0 commit comments

Comments
 (0)