Repository navigation
Commit 7a0a5e6
committed
Test the configuration cache after the extracted formatter is gone
With the formatter inside the plugin, the Spotless step signs the
extracted jars, and Spotless stores that signature in the
configuration cache entry: the jars are extracted, and checked for,
while the entry is stored. Gradle takes those checks for inputs, so a
build after the directory is deleted, or after the first extraction,
cannot reuse the entry and stores another; on a new machine or a new
plugin version that is one more configuration of every project.
spotlessApply_reuses_the_entry_after_the_extracted_formatter_is_deleted
fails on that, and is left out on Windows, which does not delete the
jars a daemon holds open.1 parent d70aab2 commit 7a0a5e6
1 file changed
Lines changed: 33 additions & 0 deletions
File tree
- gradle-open-java-format/src/test/java/com/palantir/javaformat/gradle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
99 | 132 | | |
100 | 133 | | |
101 | 134 | | |
| |||
0 commit comments