Deprecation Warning
Methods like isXxx() returning boxed Boolean violate the Java Bean specification. Gradle currently recognizes them as properties but will stop doing so in Gradle 9.0. This affects task inputs and may cause tasks to be incorrectly considered up-to-date.
Where
Plugin Java source classes:
GraphQLCodegenGradleTask
GraphQLCodegenConfiguration
SchemaFinderConfig
Affected properties
isGenerateModelOpenClasses, isGenerateModelsWithPublicFields, isGenerateNoArgsConstructorOnly, isGenerateSealedInterfaces, isInitializeNullableTypes, isSkip, isSupportUnknownFields, isRecursive
Fix (option 1 - non-breaking)
Add getXxx() methods alongside the existing isXxx() methods:
@Deprecated
@ReplacedBy("getGenerateModelOpenClasses")
public Boolean isGenerateModelOpenClasses() { return generateModelOpenClasses; }
@Input
public Boolean getGenerateModelOpenClasses() { return generateModelOpenClasses; }
Fix (option 2 - breaking)
Change the return type from Boolean to primitive boolean.
Removed in
Gradle 9.0
Resource
https://docs.gradle.org/8.14.3/userguide/upgrading_version_8.html#groovy_boolean_properties
Deprecation Warning
Methods like
isXxx()returning boxedBooleanviolate the Java Bean specification. Gradle currently recognizes them as properties but will stop doing so in Gradle 9.0. This affects task inputs and may cause tasks to be incorrectly considered up-to-date.Where
Plugin Java source classes:
GraphQLCodegenGradleTaskGraphQLCodegenConfigurationSchemaFinderConfigAffected properties
isGenerateModelOpenClasses,isGenerateModelsWithPublicFields,isGenerateNoArgsConstructorOnly,isGenerateSealedInterfaces,isInitializeNullableTypes,isSkip,isSupportUnknownFields,isRecursiveFix (option 1 - non-breaking)
Add
getXxx()methods alongside the existingisXxx()methods:Fix (option 2 - breaking)
Change the return type from
Booleanto primitiveboolean.Removed in
Gradle 9.0
Resource
https://docs.gradle.org/8.14.3/userguide/upgrading_version_8.html#groovy_boolean_properties