File tree 6 files changed +16
-4
lines changed
src/main/java/com/diffplug/gradle/spotless
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 (
6
6
### Changed
7
7
* Use palantir-java-format 2.57.0 on Java 21. ([ #2447 ] ( https://github.com/diffplug/spotless/pull/2447 ) )
8
8
* 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 ) )
9
10
10
11
## [ 7.0.2] - 2025-01-14
11
12
### Fixed
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ apply from: rootProject.file('gradle/special-tests.gradle')
33
33
tasks. withType(Test ). configureEach {
34
34
testLogging. showStandardStreams = true
35
35
}
36
+ tasks. validatePlugins {
37
+ enableStricterValidation = true
38
+ }
36
39
37
40
// ////////////////////////
38
41
// GRADLE PLUGIN PORTAL //
Original file line number Diff line number Diff line change 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.
25
25
import org .gradle .api .file .FileVisitDetails ;
26
26
import org .gradle .api .file .FileVisitor ;
27
27
import org .gradle .api .tasks .TaskAction ;
28
+ import org .gradle .work .DisableCachingByDefault ;
28
29
30
+ @ DisableCachingByDefault (because = "not worth caching" )
29
31
public abstract class SpotlessApply extends SpotlessTaskService .ClientTask {
30
32
@ TaskAction
31
33
public void performAction () {
Original file line number Diff line number Diff line change 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.
32
32
import org .gradle .api .tasks .Input ;
33
33
import org .gradle .api .tasks .Internal ;
34
34
import org .gradle .api .tasks .TaskAction ;
35
+ import org .gradle .work .DisableCachingByDefault ;
35
36
import org .jetbrains .annotations .NotNull ;
36
37
37
38
import com .diffplug .spotless .FileSignature ;
38
39
import com .diffplug .spotless .ThrowingEx ;
39
40
import com .diffplug .spotless .extra .integration .DiffMessageFormatter ;
40
41
42
+ @ DisableCachingByDefault (because = "not worth caching" )
41
43
public abstract class SpotlessCheck extends SpotlessTaskService .ClientTask {
42
44
@ Internal
43
45
public abstract Property <String > getEncoding ();
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2016-2023 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.
25
25
import org .gradle .api .DefaultTask ;
26
26
import org .gradle .api .tasks .Internal ;
27
27
import org .gradle .api .tasks .TaskAction ;
28
+ import org .gradle .api .tasks .UntrackedTask ;
28
29
29
30
import com .diffplug .spotless .Formatter ;
30
31
import com .diffplug .spotless .PaddedCell ;
31
32
32
33
import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
33
34
35
+ @ UntrackedTask (because = "undeclared inputs/outputs" )
34
36
public class SpotlessDiagnoseTask extends DefaultTask {
35
37
SpotlessTask source ;
36
38
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020-2024 DiffPlug
2
+ * Copyright 2020-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.
34
34
import org .gradle .api .tasks .OutputDirectory ;
35
35
import org .gradle .api .tasks .PathSensitive ;
36
36
import org .gradle .api .tasks .PathSensitivity ;
37
+ import org .gradle .work .DisableCachingByDefault ;
37
38
import org .gradle .work .Incremental ;
38
39
39
40
import com .diffplug .spotless .ConfigurationCacheHackList ;
43
44
import com .diffplug .spotless .LintSuppression ;
44
45
import com .diffplug .spotless .extra .GitRatchet ;
45
46
47
+ @ DisableCachingByDefault (because = "abstract definition" )
46
48
public abstract class SpotlessTask extends DefaultTask {
47
49
@ Internal
48
50
abstract Property <SpotlessTaskService > getTaskService ();
You can’t perform that action at this time.
0 commit comments