|
1 | 1 | /*
|
2 |
| - * Copyright 2016-2024 DiffPlug |
| 2 | + * Copyright 2016-2025 DiffPlug |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
36 | 36 | /** Wraps up <a href="https://github.com/pinterest/ktlint">ktlint</a> as a FormatterStep. */
|
37 | 37 | public class KtLintStep implements Serializable {
|
38 | 38 | private static final long serialVersionUID = 1L;
|
39 |
| - private static final String DEFAULT_VERSION = "1.5.0"; |
| 39 | + private static final String DEFAULT_VERSION = "1.7.0"; |
40 | 40 | private static final String NAME = "ktlint";
|
41 | 41 | private static final String MAVEN_COORDINATE_0_DOT = "com.pinterest:ktlint:";
|
42 | 42 | private static final String MAVEN_COORDINATE_1_DOT = "com.pinterest.ktlint:ktlint-cli:";
|
43 | 43 |
|
44 | 44 | private final JarState.Promised jarState;
|
45 |
| - @Nullable |
46 |
| - private final FileSignature.Promised config; |
| 45 | + @Nullable private final FileSignature.Promised config; |
47 | 46 | private final Map<String, Object> editorConfigOverride;
|
48 | 47 | private final String version;
|
49 | 48 |
|
@@ -95,8 +94,7 @@ private static final class State implements Serializable {
|
95 | 94 | private final JarState jarState;
|
96 | 95 | private final TreeMap<String, Object> editorConfigOverride;
|
97 | 96 | private final String version;
|
98 |
| - @Nullable |
99 |
| - private final FileSignature editorConfigPath; |
| 97 | + @Nullable private final FileSignature editorConfigPath; |
100 | 98 |
|
101 | 99 | State(String version,
|
102 | 100 | JarState jarState,
|
|
0 commit comments