Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionThis type is not supported when configuration caching is enabled.This type is not supported when configuration caching is enabled.
-
Deprecated ClassesClassDescriptionUse
AbstractProjectBasedReportTaskinstead.UseAbstractProjectBasedReportTaskinstead.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.
-
Deprecated EnumsEnumDescriptionThis type is only used by the deprecated
targetJdkproperty on the PMD plugin. It will be removed in Gradle 10. PMD 5.0 and later infer the Java language version from the rule sets.
-
Deprecated Exception ClassesException ClassDescriptionUse java.io.UncheckedIOException instead. Will be removed in Gradle 10.
-
Deprecated Annotation TypesAnnotation TypeDescriptionDeprecated in Gradle 9 for removal in Gradle 10. Prefer JSpecify annotations such as
NullMarkedandNullable. Note that you can also still use JSR305 annotations such asNonnullandNullable.
-
Deprecated MethodsMethodDescriptionuse
ComponentSelectionRules.all(Action)instead.useComponentSelectionRules.withModule(Object,Action)instead.This method will be removed in Gradle 10.This property is deprecated and will be removed in Gradle 10.This property is deprecated and will be removed in Gradle 10.This method will be removed in Gradle 10. UseDependenciesMetadata.add(String)instead.This method will be removed in Gradle 10. UseDependenciesMetadata.add(String, Action)instead.This method is deprecated and will be removed in Gradle 10.This method is deprecated and will be removed in Gradle 10.This method will be removed in Gradle 10. Use single-string notation instead.UseDependencyFactory.createProjectDependency(String)instead. This method will be removed in Gradle 10.0.This method is scheduled to be removed in Gradle 10. UseRepositoryHandler.flatDir(Action)instead.This method is scheduled to be removed in Gradle 10. UseRepositoryHandler.mavenCentral(Action)instead.Maven repositories with separate locations for POMs and artifacts are a Gradle-only feature with no equivalent in Maven. This method is scheduled to be removed in Gradle 10.Maven repositories with separate locations for POMs and artifacts are a Gradle-only feature with no equivalent in Maven. This method is scheduled to be removed in Gradle 10.Maven repositories with separate locations for POMs and artifacts are a Gradle-only feature with no equivalent in Maven. This method is scheduled to be removed in Gradle 10.Maven repositories with separate locations for POMs and artifacts are a Gradle-only feature with no equivalent in Maven. This method is scheduled to be removed in Gradle 10.UseDomainObjectCollection.matching(Spec)or Collection APIs from the JDK.This method is not supported when configuration caching is enabled.This method is not supported when configuration caching is enabled.This method is not supported when configuration caching is enabled.This method is not supported when configuration caching is enabled.This method is not supported when configuration caching is enabled.This method is not supported when configuration caching is enabled.This method is not supported when configuration caching is enabled.This method is not supported when configuration caching is enabled.Will be removed in Gradle 10. Logging customization through listeners is no longer supported.UsePluginManager.apply(Class)instead.UsePluginManager.apply(Class)instead.plugins cannot be removed.plugins cannot be removed.plugins cannot be removed.This property has no effect for PMD 5.0 and later, which infer the language version from the rule sets. Scheduled to be removed in Gradle 10.This property has no effect for PMD 5.0 and later, which infer the language version from the rule sets. Scheduled to be removed in Gradle 10.This property has no effect for PMD 5.0 and later, which infer the language version from the rule sets. Scheduled to be removed in Gradle 10.This property has no effect for PMD 5.0 and later, which infer the language version from the rule sets. Scheduled to be removed in Gradle 10.This property has no effect for PMD 5.0 and later, which infer the language version from the rule sets. Scheduled to be removed in Gradle 10.ThetargetJdkproperty has no effect for PMD 5.0 and later. Scheduled to be removed in Gradle 10.Severity is now determined automatically: useProblemReporter.report(org.gradle.api.problems.ProblemId, org.gradle.api.Action<? super org.gradle.api.problems.ProblemSpec>)for warnings andProblemReporter.throwing(java.lang.Throwable, org.gradle.api.problems.ProblemId, org.gradle.api.Action<? super org.gradle.api.problems.ProblemSpec>)for errors.UseObjectFactory.domainObjectContainer(Class)instead.UsegetLayout().getBuildDirectory()insteadThis method will be removed in Gradle 10.0.0. UseProject.findProperty(String)orProviderFactory.gradleProperty(String)instead. See the upgrade guide for more details.UsegetLayout().getBuildDirectory()and set theDirectoryPropertyUsegetLayout().getBuildDirectory()and set theDirectoryPropertyUsetasks.register(String)insteadUsetasks.register(String, Action)insteadUsetasks.register(String, Action)insteadUse atasks.registervariant insteadUse atasks.registervariant insteadUsegetBaseDirectory().file(path)orgetBaseDirectory().dir(path)instead.Use your own way of generating a title for API documentation.UseTaskContainer.register(String)instead. See documentation for more information.UseTaskContainer.register(String, Action)instead. See documentation for more information.UseTaskContainer.register(String, Class)instead. See documentation for more information.UseTaskContainer.register(String, Class, Object...)instead. See documentation for more information.UseTaskContainer.register(String, Class, Action)instead. See documentation for more information.UseTaskContainer.register(String, Action)instead. See documentation for more information.UseTaskContainer.register(String, Action)orTaskContainer.register(String, Class, Action)instead. See documentation for more information.UseTaskContainer.register(String, Action)instead. See documentation for more information.Replace withAbstractTestTask.addTestListener(TestListener)and aTestListener.Replace withAbstractTestTask.addTestListener(TestListener)and aTestListener.Replace withAbstractTestTask.addTestListener(TestListener)and aTestListener.Replace withAbstractTestTask.addTestListener(TestListener)and aTestListener.Replace withAbstractTestTask.addTestOutputListener(TestOutputListener)and aTestOutputListener.Only present for compatibility with cashapp/paparazzi. No replacement.This will be removed in Gradle 10Since 9.3.0. UseWrapper.DistributionType.values()directly instead.This method is not supported when configuration caching is enabled.No longer used in the default start script templates. Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.Will be removed in Gradle 10.UseConfiguration Cache build featureinstead.usePath.asString()instead
-
Deprecated Enum ConstantsEnum ConstantDescriptionOnly kept for backward compatibility. Will be removed in Gradle 10.0.