Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import org.gradle.api.tasks.Nested;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.PathSensitive;
import org.gradle.api.tasks.PathSensitivity;
import org.gradle.api.tasks.SourceSet;
import org.gradle.api.tasks.TaskAction;

Expand Down Expand Up @@ -279,6 +281,7 @@ private GraphQLCodegen instantiateCodegen(MappingConfig mappingConfig) throws IO
* @throws IOException in case some I/O error occurred
*/
@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
public List<String> getActualSchemaPaths() throws IOException {
if (graphqlSchemaPaths != null) {
return graphqlSchemaPaths;
Expand Down Expand Up @@ -317,6 +320,7 @@ private java.util.Optional<MappingConfigSupplier> buildJsonSupplier() {

@InputFiles
@Optional
@PathSensitive(PathSensitivity.RELATIVE)
public List<String> getGraphqlSchemaPaths() {
return graphqlSchemaPaths;
}
Expand All @@ -327,6 +331,7 @@ public void setGraphqlSchemaPaths(List<String> graphqlSchemaPaths) {

@InputFile
@Optional
@PathSensitive(PathSensitivity.NONE)
public String getGraphqlQueryIntrospectionResultPath() {
return graphqlQueryIntrospectionResultPath;
}
Expand Down Expand Up @@ -367,6 +372,7 @@ public void setCustomTypesMapping(Map<String, String> customTypesMapping) {

@InputDirectory
@Optional
@PathSensitive(PathSensitivity.RELATIVE)
@Override
public File getCustomTemplatesRoot() {
return customTemplatesRoot;
Expand Down Expand Up @@ -1021,6 +1027,7 @@ public String getResolverParentInterface() {

@InputFiles
@Optional
@PathSensitive(PathSensitivity.RELATIVE)
public List<String> getConfigurationFiles() {
return configurationFiles;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import io.github.besi97.graphql.codegen.GraphQLCodegenValidate;
import org.gradle.api.DefaultTask;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputFiles;
import org.gradle.api.tasks.PathSensitive;
import org.gradle.api.tasks.PathSensitivity;
import org.gradle.api.tasks.TaskAction;

import java.io.IOException;
Expand All @@ -22,7 +24,8 @@ public void validate() throws IOException {
new GraphQLCodegenValidate(graphqlSchemaPaths).validate();
}

@Input
@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
public List<String> getGraphqlSchemaPaths() {
return graphqlSchemaPaths;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import org.gradle.api.tasks.InputFiles;
import org.gradle.api.tasks.Internal;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.PathSensitive;
import org.gradle.api.tasks.PathSensitivity;

import java.util.Collections;
import java.util.Set;
Expand Down Expand Up @@ -63,6 +65,7 @@ public void setIncludePattern(String includePattern) {

@InputFiles
@Optional
@PathSensitive(PathSensitivity.RELATIVE)
public Set<String> getExcludedFiles() {
return excludedFiles;
}
Expand Down
Loading