Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionWill be removed in Gradle 9.0.This type is not supported when configuration caching is enabled.This type is not supported when configuration caching is enabled.Use extensions instead. This is scheduled for removal in Gradle 9.This type is not referenced by any other public API classes. It will be removed in Gradle 9.0This type is not referenced by any other public API classes. It will be removed in Gradle 9.0Using convention to contribute to source sets is deprecated. You can configure the groovy sources via the
GroovySourceDirectorySetextension (e.g.sourceSet.getExtensions().getByType(GroovySourceDirectorySet.class).setSrcDirs(...)). This interface is scheduled for removal in Gradle 9.0.Using conventions to contribute source sets is deprecated. You can configure the groovy sources via theScalaSourceDirectorySetextension (e.g.sourceSet.getExtensions().getByType(ScalaSourceDirectorySet.class).setSrcDirs(...)). This interface is scheduled for removal in Gradle 9.0.
-
Deprecated ClassesClassDescriptionUse
AbstractProjectBasedReportTaskinstead.UseAbstractProjectBasedReportTaskinstead.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.
-
Deprecated Enums
-
Deprecated Exception Classes
-
Deprecated Annotation TypesAnnotation TypeDescription
-
Deprecated FieldsFieldDescriptionThis constant scheduled for removal in Gradle 9.0We are grouping all IBM runtimes under the '
IBM' vendor, won't keep a separate constant for Semeru ones. Just use 'IBM' instead.
-
Deprecated MethodsMethodDescriptionUse
BuildIdentifier.getBuildPath()instead.CompareBuildIdentifier.getBuildPath()with the build path of the current build instead.This method will be removed in Gradle 9.0. Accessing the mutable state of other projects should be avoided.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 9. Logging customization through listeners is no longer supported.Use extensions instead. This is scheduled for removal in Gradle 9.Use extensions instead. This is scheduled for removal in Gradle 9.Use extensions instead. This is scheduled for removal in Gradle 9.UsePluginManager.apply(Class)instead.UsePluginManager.apply(Class)instead.plugins cannot be removed.plugins cannot be removed.plugins cannot be removed.Since 8.11. This method will be removed in Gradle 9.0. UseExecOperations.exec(Action)orProviderFactory.exec(Action)instead.Since 8.11. This method will be removed in Gradle 9.0. UseExecOperations.exec(Action)orProviderFactory.exec(Action)instead.UsegetLayout().getBuildDirectory()insteadThe concept of conventions is deprecated. Use extensions if possible.Since 8.11. This method will be removed in Gradle 9.0. UseExecOperations.javaexec(Action)orProviderFactory.javaexec(Action)instead.Since 8.11. This method will be removed in Gradle 9.0. UseExecOperations.javaexec(Action)orProviderFactory.javaexec(Action)instead.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 insteadThis method will be removed in Gradle 9.0UseReport.getOutputLocation().set() instead. This method will be removed in Gradle 9.0.Since 8.11. This method will be removed in Gradle 9.0. UseExecOperations.exec(Action)orProviderFactory.exec(Action)instead.Since 8.11. This method will be removed in Gradle 9.0. UseExecOperations.exec(Action)orProviderFactory.exec(Action)instead.Since 8.11. This method will be removed in Gradle 9.0. UseExecOperations.javaexec(Action)orProviderFactory.javaexec(Action)instead.Since 8.11. This method will be removed in Gradle 9.0. UseExecOperations.javaexec(Action)orProviderFactory.javaexec(Action)instead.The concept of conventions is deprecated. Use extensions if possible.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.UseWriteProperties.getDestinationFile()instead.UseWriteProperties.getDestinationFile()instead.This method is not supported when configuration caching is enabled.this is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDaysthis is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDaysUseConfiguration Cache build featureinstead.