File tree Expand file tree Collapse file tree 7 files changed +29
-0
lines changed
groovy/org/opensearch/gradle/precommit
java/org/opensearch/gradle Expand file tree Collapse file tree 7 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ import org.gradle.api.tasks.Input
37
37
import org.gradle.api.tasks.InputFiles
38
38
import org.gradle.api.tasks.IgnoreEmptyDirectories ;
39
39
import org.gradle.api.tasks.OutputFile
40
+ import org.gradle.api.tasks.PathSensitive
41
+ import org.gradle.api.tasks.PathSensitivity
40
42
import org.gradle.api.tasks.SkipWhenEmpty
41
43
42
44
import java.nio.file.Files
@@ -80,6 +82,7 @@ class LicenseHeadersTask extends AntTask {
80
82
@InputFiles
81
83
@SkipWhenEmpty
82
84
@IgnoreEmptyDirectories
85
+ @PathSensitive (PathSensitivity .RELATIVE )
83
86
List<FileCollection > getJavaFiles () {
84
87
return project. sourceSets. collect({it. allJava})
85
88
}
Original file line number Diff line number Diff line change 49
49
import org .gradle .api .tasks .IgnoreEmptyDirectories ;
50
50
import org .gradle .api .tasks .InputFiles ;
51
51
import org .gradle .api .tasks .OutputFile ;
52
+ import org .gradle .api .tasks .PathSensitive ;
53
+ import org .gradle .api .tasks .PathSensitivity ;
52
54
import org .gradle .api .tasks .SkipWhenEmpty ;
53
55
import org .gradle .api .tasks .StopExecutionException ;
54
56
import org .gradle .api .tasks .TaskAction ;
@@ -94,6 +96,7 @@ private static boolean isExecutableFile(File file) {
94
96
@ InputFiles
95
97
@ SkipWhenEmpty
96
98
@ IgnoreEmptyDirectories
99
+ @ PathSensitive (PathSensitivity .RELATIVE )
97
100
public FileCollection getFiles () {
98
101
return GradleUtils .getJavaSourceSets (getProject ())
99
102
.stream ()
Original file line number Diff line number Diff line change 41
41
import org .gradle .api .tasks .Input ;
42
42
import org .gradle .api .tasks .InputFiles ;
43
43
import org .gradle .api .tasks .OutputFile ;
44
+ import org .gradle .api .tasks .PathSensitive ;
45
+ import org .gradle .api .tasks .PathSensitivity ;
44
46
import org .gradle .api .tasks .SkipWhenEmpty ;
45
47
import org .gradle .api .tasks .TaskAction ;
46
48
import org .gradle .api .tasks .util .PatternFilterable ;
@@ -102,6 +104,7 @@ public ForbiddenPatternsTask() {
102
104
@ InputFiles
103
105
@ SkipWhenEmpty
104
106
@ IgnoreEmptyDirectories
107
+ @ PathSensitive (PathSensitivity .RELATIVE )
105
108
public FileCollection getFiles () {
106
109
return getProject ().getConvention ()
107
110
.getPlugin (JavaPluginConvention .class )
Original file line number Diff line number Diff line change 47
47
import org .gradle .api .tasks .Input ;
48
48
import org .gradle .api .tasks .InputFiles ;
49
49
import org .gradle .api .tasks .OutputDirectory ;
50
+ import org .gradle .api .tasks .PathSensitive ;
51
+ import org .gradle .api .tasks .PathSensitivity ;
50
52
import org .gradle .api .tasks .SkipWhenEmpty ;
51
53
import org .gradle .api .tasks .SourceSet ;
52
54
import org .gradle .api .tasks .TaskAction ;
@@ -116,6 +118,7 @@ public boolean isSkipHasRestTestCheck() {
116
118
@ IgnoreEmptyDirectories
117
119
@ SkipWhenEmpty
118
120
@ InputFiles
121
+ @ PathSensitive (PathSensitivity .RELATIVE )
119
122
public FileTree getInputDir () {
120
123
FileTree coreFileTree = null ;
121
124
boolean projectHasYamlRestTests = skipHasRestTestCheck || projectHasYamlRestTests ();
Original file line number Diff line number Diff line change 47
47
import org .gradle .api .tasks .Input ;
48
48
import org .gradle .api .tasks .InputFiles ;
49
49
import org .gradle .api .tasks .OutputDirectory ;
50
+ import org .gradle .api .tasks .PathSensitive ;
51
+ import org .gradle .api .tasks .PathSensitivity ;
50
52
import org .gradle .api .tasks .SkipWhenEmpty ;
51
53
import org .gradle .api .tasks .SourceSet ;
52
54
import org .gradle .api .tasks .TaskAction ;
@@ -108,6 +110,7 @@ String getSourceSetName() {
108
110
@ IgnoreEmptyDirectories
109
111
@ SkipWhenEmpty
110
112
@ InputFiles
113
+ @ PathSensitive (PathSensitivity .RELATIVE )
111
114
public FileTree getInputDir () {
112
115
FileTree coreFileTree = null ;
113
116
if (includeCore .get ().isEmpty () == false ) {
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import javax.annotation.Nullable
10
+ import org.gradle.api.tasks.PathSensitive ;
11
+ import org.gradle.api.tasks.PathSensitivity ;
10
12
import org.gradle.internal.jvm.Jvm
11
13
12
14
/**
@@ -179,6 +181,7 @@ class MissingJavadocTask extends DefaultTask {
179
181
@InputFiles
180
182
@SkipWhenEmpty
181
183
@IgnoreEmptyDirectories
184
+ @PathSensitive (PathSensitivity .RELATIVE )
182
185
SourceDirectorySet srcDirSet;
183
186
184
187
@OutputDirectory
Original file line number Diff line number Diff line change
1
+ #
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ #
4
+ # The OpenSearch Contributors require contributions made to
5
+ # this file be licensed under the Apache-2.0 license or a
6
+ # compatible open source license.
7
+ #
8
+ # Modifications Copyright OpenSearch Contributors. See
9
+ # GitHub history for details.
10
+ #
11
+
1
12
distributionBase =GRADLE_USER_HOME
2
13
distributionPath =wrapper/dists
3
14
distributionUrl =https\://services.gradle.org/distributions/gradle-7.4.1-all.zip
You can’t perform that action at this time.
0 commit comments