-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove JvmLocalCache
now that everything is round-trippable on its own
#2088
Conversation
nedtwigg
commented
Apr 4, 2024
- Capstone piece of Support Gradle configuration cache on multiple JVMs #1274
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than @Goooler's comment and my nit-picking comment below, this PR LGTM!
@@ -151,10 +151,10 @@ void customRunToFixMessage() throws Exception { | |||
@Test | |||
void whitespaceProblem() throws Exception { | |||
Bundle spotless = create(setFile("testFile").toContent("A \nB\t\nC \n")); | |||
spotless.task.addStep(FormatterStep.createNeverUpToDate("trimTrailing", input -> { | |||
spotless.task.setSteps(List.of(FormatterStep.createNeverUpToDate("trimTrailing", input -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm tempted to revert this code change and all other addStep
-> setStep
changes. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see an argument for setSteps(FormatterStep... steps)
to remove the manual List.of
, but I think the mutable-naming addStep
is bad. It's used only for a few tests, which is why I just did the List.of
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough! I have no strong opinions either way, so I'm happy to continue with setSteps
.
…essTask.java Co-authored-by: Zongle Wang <wangzongler@gmail.com>