File tree Expand file tree Collapse file tree 6 files changed +16
-4
lines changed
src/main/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 6 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
66### Changed
77* Use palantir-java-format 2.57.0 on Java 21. ([ #2447 ] ( https://github.com/diffplug/spotless/pull/2447 ) )
88* Re-try ` npm install ` with ` --prefer-online ` after ` ERESOLVE ` error. ([ #2448 ] ( https://github.com/diffplug/spotless/pull/2448 ) )
9+ * Apply Gradle's strict plugin types validation to the Spotless plugin. ([ #2454 ] ( https://github.com/diffplug/spotless/pull/2454 ) )
910
1011## [ 7.0.2] - 2025-01-14
1112### Fixed
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ apply from: rootProject.file('gradle/special-tests.gradle')
3333tasks. withType(Test ). configureEach {
3434 testLogging. showStandardStreams = true
3535}
36+ tasks. validatePlugins {
37+ enableStricterValidation = true
38+ }
3639
3740// ////////////////////////
3841// GRADLE PLUGIN PORTAL //
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2016-2024 DiffPlug
2+ * Copyright 2016-2025 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2525import org .gradle .api .file .FileVisitDetails ;
2626import org .gradle .api .file .FileVisitor ;
2727import org .gradle .api .tasks .TaskAction ;
28+ import org .gradle .work .DisableCachingByDefault ;
2829
30+ @ DisableCachingByDefault (because = "not worth caching" )
2931public abstract class SpotlessApply extends SpotlessTaskService .ClientTask {
3032 @ TaskAction
3133 public void performAction () {
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2016-2024 DiffPlug
2+ * Copyright 2016-2025 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
3232import org .gradle .api .tasks .Input ;
3333import org .gradle .api .tasks .Internal ;
3434import org .gradle .api .tasks .TaskAction ;
35+ import org .gradle .work .DisableCachingByDefault ;
3536import org .jetbrains .annotations .NotNull ;
3637
3738import com .diffplug .spotless .FileSignature ;
3839import com .diffplug .spotless .ThrowingEx ;
3940import com .diffplug .spotless .extra .integration .DiffMessageFormatter ;
4041
42+ @ DisableCachingByDefault (because = "not worth caching" )
4143public abstract class SpotlessCheck extends SpotlessTaskService .ClientTask {
4244 @ Internal
4345 public abstract Property <String > getEncoding ();
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2016-2023 DiffPlug
2+ * Copyright 2016-2025 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2525import org .gradle .api .DefaultTask ;
2626import org .gradle .api .tasks .Internal ;
2727import org .gradle .api .tasks .TaskAction ;
28+ import org .gradle .api .tasks .UntrackedTask ;
2829
2930import com .diffplug .spotless .Formatter ;
3031import com .diffplug .spotless .PaddedCell ;
3132
3233import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
3334
35+ @ UntrackedTask (because = "undeclared inputs/outputs" )
3436public class SpotlessDiagnoseTask extends DefaultTask {
3537 SpotlessTask source ;
3638
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020-2024 DiffPlug
2+ * Copyright 2020-2025 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
3434import org .gradle .api .tasks .OutputDirectory ;
3535import org .gradle .api .tasks .PathSensitive ;
3636import org .gradle .api .tasks .PathSensitivity ;
37+ import org .gradle .work .DisableCachingByDefault ;
3738import org .gradle .work .Incremental ;
3839
3940import com .diffplug .spotless .ConfigurationCacheHackList ;
4344import com .diffplug .spotless .LintSuppression ;
4445import com .diffplug .spotless .extra .GitRatchet ;
4546
47+ @ DisableCachingByDefault (because = "abstract definition" )
4648public abstract class SpotlessTask extends DefaultTask {
4749 @ Internal
4850 abstract Property <SpotlessTaskService > getTaskService ();
You can’t perform that action at this time.
0 commit comments