Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionWill be removed in Gradle 9.0.Dependencies should not be resolved outside a resolvable configuration. To resolve this dependency, add it to a resolvable configuration and resolve that configuration.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
JavaApplicationinstead. This class is scheduled for removal in Gradle 9.0.UseBasePluginExtensioninstead. This class is scheduled for removal in Gradle 9.0.Replaced byJavaPluginExtension. This class is scheduled for removal in Gradle 9.0.Please configure the tasks directly. This class is scheduled for removal in Gradle 9.0.Please configure the tasks directly. This class is scheduled for removal in Gradle 9.0.This class will be removed in Gradle 9.0. All classes that extend this class will no longer extend it.UseAbstractProjectBasedReportTaskinstead.UseAbstractProjectBasedReportTaskinstead.This class is scheduled for removal in Gradle 9.0. To publish artifacts, use themaven-publishorivy-publishplugins instead.Instead of using conventions, configure the tasks directly. This class is scheduled for removal in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.Will be removed in Gradle 9.0.
-
Deprecated Enums
-
Deprecated Exception Classes
-
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.will be removed in Gradle 9.will be removed in Gradle 9.will be removed in Gradle 9.will be removed in Gradle 9.
-
Deprecated MethodsMethodDescriptionUse
BuildIdentifier.getBuildPath()instead.CompareBuildIdentifier.getBuildPath()with the build path of the current build instead.UseProjectComponentSelector.getBuildPath()instead.UsegetIncoming().artifactView(Action)with acomponentFilterinstead.UsegetIncoming().artifactView(Action)with acomponentFilterinstead.UsegetIncoming().artifactView(Action)with acomponentFilterinstead.UsegetIncoming().artifactView(Action)with acomponentFilterinstead.UsegetIncoming().artifactView(Action)with acomponentFilterinstead.UsegetIncoming().artifactView(Action)with acomponentFilterinstead.This method will be removed in Gradle 9.0UseObject.equals(Object)instead.Please use component metadata rules instead. This method will be removed in Gradle 9.0.Please use component metadata rules instead. This method will be removed in Gradle 9.0.JFrog announced JCenter's sunset in February 2021. UseRepositoryHandler.mavenCentral()instead.JFrog announced JCenter's sunset in February 2021. UseRepositoryHandler.mavenCentral()instead.This class will no longer implementSelfResolvingDependencyin Gradle 9.0.This class will no longer implementSelfResolvingDependencyin Gradle 9.0. UseFileCollectionDependency.getFiles()instead.This class will no longer implementSelfResolvingDependencyin Gradle 9.0. UseFileCollectionDependency.getFiles()instead.Use a lenientArtifactViewwith acomponentFilterinstead.Use a lenientArtifactViewinstead.Use a lenientArtifactViewwith acomponentFilterinstead.This class will no longer implementSelfResolvingDependencyin Gradle 9.0This method will be removed in Gradle 9.0. Accessing the mutable state of other projects should be avoided.This class will no longer implementSelfResolvingDependencyin Gradle 9.0This class will no longer implementSelfResolvingDependencyin Gradle 9.0UseResolvableDependencies.getFiles()instead.Use anArtifactViewwith acomponentFilterinstead.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.UseCopyProcessingSpec.getDirPermissions()instead. This method is scheduled for removal in Gradle 9.0.UseCopyProcessingSpec.getFilePermissions()instead. This method is scheduled for removal in Gradle 9.0.UseCopyProcessingSpec.dirPermissions(Action)instead. This method is scheduled for removal in Gradle 9.0.UseCopyProcessingSpec.filePermissions(Action)instead. This method is scheduled for removal in Gradle 9.0.UseFileCopyDetails.permissions(Action)instead. This method is scheduled for removal in Gradle 9.0.UseFileTreeElement.getPermissions()instead. This method is scheduled for removal in Gradle 9.0.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.UseBasePluginExtension.getArchivesName(). This method is scheduled for removal in Gradle 9.0.UseBasePluginExtension.getDistsDirectory(). This method is scheduled for removal in Gradle 9.0.UseBasePluginExtension.getLibsDirectory(). This method is scheduled for removal in Gradle 9.0.UseBasePluginExtension.getArchivesName(). This method is scheduled for removal in Gradle 9.0.UseBasePluginExtension.getDistsDirectory(). This method is scheduled for removal in Gradle 9.0.UseBasePluginExtension.getLibsDirectory(). This method is scheduled for removal in Gradle 9.0.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.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.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 insteadSince version 7.4 this method does nothing. All providers can be used at configuration time without explicit opt-in.This method will be removed in Gradle 9.0This method will be removed in Gradle 9.0.This method will be removed in Gradle 9.0.UseReport.getOutputLocation().set() instead. This method will be removed in Gradle 9.0.useReportingExtension.getBaseDirectory()property insteaduseReportingExtension.getBaseDirectory()property insteaduseReportingExtension.getBaseDirectory()property insteadSince 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.UseAbstractCompile.getDestinationDirectory()instead. This method will be removed in Gradle 9.0.UseAbstractCompile.getDestinationDirectory().set() instead. This method will be removed in Gradle 9.0.UseAbstractCompile.getDestinationDirectory().set() instead. This method will be removed in Gradle 9.0.This method will be removed in Gradle 9.0This method will be removed in Gradle 9.0This method will be removed in Gradle 9.0UseCompileOptions.getGeneratedSourceOutputDirectory()instead. This method will be removed in Gradle 9.0.UseCompileOptions.getGeneratedSourceOutputDirectory().set() instead. This method will be removed in Gradle 9.0.UseCompileOptions.getGeneratedSourceOutputDirectory().set() instead. This method will be removed in Gradle 9.0.Setting a new instance of this property is unnecessary. This method will be removed in Gradle 9.0. UseCompileOptions.debugOptions(Action)instead.Setting a new instance of this property is unnecessary. This method will be removed in Gradle 9.0. UseCompileOptions.forkOptions(Action)instead.This method will be removed in Gradle 9.0Setting a new instance of this property is unnecessary. This method will be removed in Gradle 9.0. UseGroovyCompileOptions.forkOptions(Action)instead.Not intended for public use.UseGradleBuild.getDir()instead to get the root of the nested build. This method will be removed in Gradle 9.0.UseGradleBuild.setDir(File)instead to set the root of the nested build. This method will be removed in Gradle 9.0.UseGradleBuild.setDir(Object)instead to set the root of the nested build. This method will be removed in Gradle 9.0.Do not use this method.Do not use this method.This method duplicates the functionality ofgetOptions().isVerbose(). It will be removed in Gradle 9.0.This method duplicates the functionality ofgetOptions().verbose(). It will be removed in Gradle 9.0.Setting a new instance of this property is unnecessary. This method will be removed in Gradle 9.0. UseScalaDoc.scalaDocOptions(Action)instead.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.UseTest.setForkEvery(long)instead.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.This class is scheduled for removal in Gradle 9.0, this method should not be used.UseWriteProperties.getDestinationFile()instead.UseWriteProperties.getDestinationFile()instead.useUpdateDaemonJvm.getVendor()insteadUse getLanguageVersion insteadThis method is not supported when configuration caching is enabled.UseBuildCacheKey.getHashCode()instead.this is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDaysthis is superseded byCacheConfigurations.buildCache.removeUnusedEntriesAfterDaysSetting a new instance of this property is unnecessary. This method will be removed in Gradle 9.0. UseBaseScalaCompileOptions.forkOptions(Action)instead.Setting a new instance of this property is unnecessary. This method will be removed in Gradle 9.0. UseBaseScalaCompileOptions.incrementalOptions(Action)instead.UseJavaExecSpec.getMainClass().set(main) instead. This method will be removed in Gradle 9.0.Setting custom build file to select the default project has been deprecated. This method will be removed in Gradle 9.0.Setting custom build file to select the default project has been deprecated. This method will be removed in Gradle 9.0.UseConfiguration Cache build featureinstead.Setting custom build file to select the default project has been deprecated. Please useStartParameter.setProjectDir(File)to specify the directory of the default project instead. This method will be removed in Gradle 9.0.Setting custom settings file for the build has been deprecated. Please useStartParameter.setProjectDir(File)to specify the directory of the default project instead. This method will be removed in Gradle 9.0.will be removed in Gradle 9.will be removed in Gradle 9.will be removed in Gradle 9.will be removed in Gradle 9.
-
Deprecated ConstructorsConstructorDescriptionThis constructor will be made protected in 9.0This constructor will be removed in 9.0