# Deprecated API

## Contents

- Interfaces
- Classes
- Enums
- Exceptions
- Fields
- Methods

- Interfaces
  Interface | Description
  --- | ---
  org.gradle.api.artifacts.transform.VariantTransform | Use `TransformSpec` instead.
  org.gradle.api.plugins.antlr.AntlrSourceVirtualDirectory | Using conventions to contribute source sets is deprecated. You can configure the antlr sources via the `AntlrSourceDirectorySet` extension (e.g. `sourceSet.getExtensions().getByType(AntlrSourceDirectorySet.class).setSrcDirs(...)`). This interface is scheduled for removal in Gradle 8.0.
  org.gradle.api.tasks.GroovySourceSet | Using convention to contribute to source sets is deprecated. You can configure the groovy sources via the `GroovySourceDirectorySet` extension (e.g. `sourceSet.getExtensions().getByType(GroovySourceDirectorySet.class).setSrcDirs(...)`). This interface is scheduled for removal in Gradle 8.0.
  org.gradle.api.tasks.incremental.IncrementalTaskInputs | Use `InputChanges` instead.
  org.gradle.api.tasks.ScalaSourceSet | Using conventions to contribute source sets is deprecated. You can configure the groovy sources via the `ScalaSourceDirectorySet` extension (e.g. `sourceSet.getExtensions().getByType(ScalaSourceDirectorySet.class).setSrcDirs(...)`). This interface is scheduled for removal in Gradle 8.0.
  org.gradle.util.VersionNumber.Scheme |
  org.gradle.workers.WorkerConfiguration |

- Classes
  Class | Description
  --- | ---
  org.gradle.api.artifacts.transform.ArtifactTransform | Use `TransformAction` instead.
  org.gradle.api.plugins.ApplicationPluginConvention | Use `JavaApplication` instead. This class is scheduled for removal in Gradle 8.0.
  org.gradle.api.plugins.BasePluginConvention | Use `BasePluginExtension` instead. This class is scheduled for removal in Gradle 8.0.
  org.gradle.api.plugins.JavaPluginConvention | Replaced by `JavaPluginExtension`. This class is scheduled for removal in Gradle 8.0.
  org.gradle.api.plugins.MavenPlugin |
  org.gradle.api.plugins.ProjectReportsPluginConvention | Please configure the tasks directly. This class is scheduled for removal in Gradle 8.0.
  org.gradle.api.plugins.WarPluginConvention | Please configure the tasks directly. This class is scheduled for removal in Gradle 8.0.
  org.gradle.api.reporting.components.ComponentReport |
  org.gradle.api.reporting.dependents.DependentComponentsReport |
  org.gradle.api.reporting.model.ModelReport |
  org.gradle.api.tasks.diagnostics.AbstractReportTask | Use `ProjectBasedReportTask` instead.
  org.gradle.api.tasks.Upload | This class is scheduled for removal in Gradle 8.0. To upload artifacts, use the maven-publish plugin instead.
  org.gradle.plugins.ear.EarPluginConvention | Instead of using conventions, configure the tasks directly. This class is scheduled for removal in Gradle 8.0.
  org.gradle.testing.jacoco.tasks.JacocoMerge | The `JacocoReport` task accepts multiple execution files as an input. This task type provides duplicated functionality and will be removed in Gradle 8.0.
  org.gradle.util.ClosureBackedAction | Will be removed in Gradle 8.0.
  org.gradle.util.CollectionUtils | Will be removed in Gradle 8.0.
  org.gradle.util.CollectionUtils.InjectionStep |
  org.gradle.util.ConfigureUtil | Will be removed in Gradle 8.0.
  org.gradle.util.ConfigureUtil.WrappedConfigureAction |
  org.gradle.util.DistributionLocator | Will be removed in Gradle 8.0.
  org.gradle.util.GFileUtils | Will be removed in Gradle 8.0.
  org.gradle.util.GUtil | Will be removed in Gradle 8.0.
  org.gradle.util.NameMatcher | Will be removed in Gradle 8.0.
  org.gradle.util.NameValidator | Will be removed in Gradle 8.0.
  org.gradle.util.RelativePathUtil | Will be removed in Gradle 8.0.
  org.gradle.util.SingleMessageLogger | Will be removed in Gradle 8.0.
  org.gradle.util.TextUtil | Will be removed in Gradle 8.0.
  org.gradle.util.VersionNumber | Will be removed in Gradle 8.0.
  org.gradle.util.WrapUtil | Will be removed in Gradle 8.0.

- Enums
  Enum | Description
  --- | ---
  org.gradle.workers.ForkMode |
  org.gradle.workers.IsolationMode |

- Exceptions
  Exceptions | Description
  --- | ---
  org.gradle.api.artifacts.transform.ArtifactTransformException |
  org.gradle.util.ConfigureUtil.IncompleteInputException |
  org.gradle.util.GFileUtils.TailReadingException |

- Fields
  Field | Description
  --- | ---
  org.gradle.api.attributes.Usage.JAVA_API_CLASSES |
  org.gradle.api.attributes.Usage.JAVA_API_JARS |
  org.gradle.api.attributes.Usage.JAVA_RUNTIME_CLASSES |
  org.gradle.api.attributes.Usage.JAVA_RUNTIME_JARS |
  org.gradle.api.attributes.Usage.JAVA_RUNTIME_RESOURCES |
  org.gradle.testing.jacoco.plugins.JacocoPluginExtension.project |
  org.gradle.util.GradleVersion.RESOURCE_NAME | will be removed in Gradle 8.
  org.gradle.util.GradleVersion.URL | will be removed in Gradle 8.
  org.gradle.util.GradleVersion.VERSION_NUMBER_PROPERTY | will be removed in Gradle 8.
  org.gradle.util.GradleVersion.VERSION_OVERRIDE_VAR | will be removed in Gradle 8.

- Methods
  Method | Description
  --- | ---
  org.gradle.api.artifacts.Configuration.getUploadTaskName() |
  org.gradle.api.artifacts.DependencySubstitutions.Substitution.with​(ComponentSelector) | Use `DependencySubstitutions.Substitution.using(ComponentSelector)` instead. This method will be removed in Gradle 8.0.
  org.gradle.api.artifacts.dsl.DependencyHandler.registerTransform​(Action<? super VariantTransform>) | use `DependencyHandler.registerTransform(Class, Action)` instead.
  org.gradle.api.artifacts.dsl.RepositoryHandler.jcenter​(Action<? super MavenArtifactRepository>) | JFrog announced JCenter's sunset in February 2021. Use `RepositoryHandler.mavenCentral()` instead.
  org.gradle.api.artifacts.ExternalDependency.setForce​(boolean) | Use `instead.`
  org.gradle.api.artifacts.result.ResolvedComponentResult.getVariant() | Use `ResolvedComponentResult.getVariants()` instead}
  org.gradle.api.file.SourceDirectorySet.getOutputDir() | Use `SourceDirectorySet.getClassesDirectory()` instead. This method will be removed in Gradle 8.0.
  org.gradle.api.file.SourceDirectorySet.setOutputDir​(Provider<File>) | Use `SourceDirectorySet.getDestinationDirectory()`.set() instead. This method will be removed in Gradle 8.0.
  org.gradle.api.initialization.Settings.includeFlat​(String...) | Using a flat project structure is discouraged. For one thing it causes inefficiencies in file-system watching. Clients should always use a hierarchical project layout and define the structure with `Settings.include(String...)` This method is scheduled for removal in Gradle 8.0.
  org.gradle.api.plugins.BasePluginExtension.getArchivesBaseName() |
  org.gradle.api.plugins.BasePluginExtension.getDistsDirName() | Use `BasePluginExtension.getDistsDirectory()`. This method is scheduled for removal in Gradle 8.0.
  org.gradle.api.plugins.BasePluginExtension.getLibsDirName() | Use `BasePluginExtension.getLibsDirectory()`. This method is scheduled for removal in Gradle 8.0.
  org.gradle.api.plugins.BasePluginExtension.setArchivesBaseName​(String) |
  org.gradle.api.plugins.BasePluginExtension.setDistsDirName​(String) | Use `BasePluginExtension.getDistsDirectory()`. This method is scheduled for removal in Gradle 8.0.
  org.gradle.api.plugins.BasePluginExtension.setLibsDirName​(String) |
  org.gradle.api.plugins.JavaApplication.getMainClassName() | Use `JavaApplication.getMainClass()` instead.
  org.gradle.api.plugins.JavaApplication.setMainClassName​(String) | Set via `JavaApplication.getMainClass()` instead.
  org.gradle.api.plugins.JavaBasePlugin.getJavaToolchainQueryService() |
  org.gradle.api.plugins.PluginCollection.add​(T) | Use `PluginManager.apply(Class)` instead.
  org.gradle.api.plugins.PluginCollection.addAll​(Collection<? extends T>) | Use `PluginManager.apply(Class)` instead.
  org.gradle.api.plugins.PluginCollection.clear() | plugins cannot be removed.
  org.gradle.api.plugins.PluginCollection.remove​(Object) | plugins cannot be removed.
  org.gradle.api.plugins.PluginCollection.removeAll​(Collection<?>) | plugins cannot be removed.
  org.gradle.api.Project.getConvention() | The concept of conventions is deprecated. Use extensions if possible.
  org.gradle.api.reporting.ConfigurableReport.setDestination​(File) | Use `Report.getOutputLocation()`.set() instead. This method will be removed in Gradle 8.0.
  org.gradle.api.reporting.ConfigurableReport.setEnabled​(boolean) | Use `Report.getRequired()`.set() instead. This method will be removed in Gradle 8.0.
  org.gradle.api.reporting.Report.getDestination() | Use `Report.getOutputLocation()` instead. This method will be removed in Gradle 8.0.
  org.gradle.api.reporting.Report.isEnabled() | Use `Report.getRequired()` instead. This method will be removed in Gradle 8.0.
  org.gradle.api.reporting.Report.setEnabled​(boolean) | Use `Report.getRequired()`.set() instead. This method will be removed in Gradle 8.0.
  org.gradle.api.Task.getConvention() | The concept of conventions is deprecated. Use extensions if possible.
  org.gradle.api.tasks.AbstractExecTask.getExecResult() | Use `AbstractExecTask.getExecutionResult()` instead. This method will be removed in Gradle 8.0.
  org.gradle.api.tasks.bundling.AbstractArchiveTask.getAppendix() | Use `AbstractArchiveTask.getArchiveAppendix()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.getArchiveName() | Use `AbstractArchiveTask.getArchiveFileName()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.getArchivePath() | Use `AbstractArchiveTask.getArchiveFile()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.getBaseName() | Use `AbstractArchiveTask.getArchiveBaseName()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.getClassifier() | Use `AbstractArchiveTask.getArchiveClassifier()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.getDestinationDir() | Use `AbstractArchiveTask.getDestinationDirectory()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.getExtension() | Use `AbstractArchiveTask.getArchiveExtension()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.getVersion() | Use `AbstractArchiveTask.getArchiveVersion()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.setAppendix​(String) | Use `AbstractArchiveTask.getArchiveAppendix()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.setArchiveName​(String) | Use `AbstractArchiveTask.getArchiveFileName()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.setBaseName​(String) | Use `AbstractArchiveTask.getArchiveBaseName()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.setClassifier​(String) | Use `AbstractArchiveTask.getArchiveClassifier()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.setDestinationDir​(File) | Use `AbstractArchiveTask.getDestinationDirectory()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.setExtension​(String) | Use `AbstractArchiveTask.getArchiveExtension()`
  org.gradle.api.tasks.bundling.AbstractArchiveTask.setVersion​(String) | Use `AbstractArchiveTask.getArchiveVersion()`
  org.gradle.api.tasks.compile.AbstractCompile.getDestinationDir() | Use `AbstractCompile.getDestinationDirectory()` instead. This method will be removed in Gradle 8.0.
  org.gradle.api.tasks.compile.AbstractCompile.setDestinationDir​(File) | Use `AbstractCompile.getDestinationDirectory()`.set() instead. This method will be removed in Gradle 8.0.
  org.gradle.api.tasks.compile.CompileOptions.getAnnotationProcessorGeneratedSourcesDirectory() | Use `CompileOptions.getGeneratedSourceOutputDirectory()` instead. This method will be removed in Gradle 8.0.
  org.gradle.api.tasks.compile.CompileOptions.setAnnotationProcessorGeneratedSourcesDirectory​(File) | Use `CompileOptions.getGeneratedSourceOutputDirectory()`.set() instead. This method will be removed in Gradle 8.0.
  org.gradle.api.tasks.GradleBuild.getBuildFile() | Use `GradleBuild.getDir()` instead to get the root of the nested build. This method will be removed in Gradle 8.0.
  org.gradle.api.tasks.GradleBuild.setBuildFile​(File) | Use `GradleBuild.setDir(File)` instead to set the root of the nested build. This method will be removed in Gradle 8.0.
  org.gradle.api.tasks.JavaExec.getMain() |
  org.gradle.api.tasks.JavaExec.setMain​(String) |
  org.gradle.api.tasks.testing.AbstractTestTask.getBinResultsDir() | Use `AbstractTestTask.getBinaryResultsDirectory()` instead. This method will be removed in Gradle 8.0.
  org.gradle.api.tasks.testing.AbstractTestTask.setBinResultsDir​(File) | Use `AbstractTestTask.getBinaryResultsDirectory()`.set() instead. This method will be removed in Gradle 8.0.
  org.gradle.jvm.application.tasks.CreateStartScripts.getMainClassName() |
  org.gradle.jvm.application.tasks.CreateStartScripts.setMainClassName​(String) |
  org.gradle.process.JavaExecSpec.getMain() | Use `JavaExecSpec.getMainClass()` instead. This method will be removed in Gradle 8.0.
  org.gradle.process.JavaExecSpec.setMain​(String) | Use `JavaExecSpec.getMainClass()`.set(main) instead. This method will be removed in Gradle 8.0.
  org.gradle.StartParameter.getBuildFile() | Setting custom build file to select the default project has been deprecated. This method will be removed in Gradle 8.0.
  org.gradle.StartParameter.getSettingsFile() | Setting custom build file to select the default project has been deprecated. This method will be removed in Gradle 8.0.
  org.gradle.StartParameter.setBuildFile​(File) | Setting custom build file to select the default project has been deprecated. Please use `StartParameter.setProjectDir(File)` to specify the directory of the default project instead. This method will be removed in Gradle 8.0.
  org.gradle.StartParameter.setSettingsFile​(File) | Setting custom settings file for the build has been deprecated. Please use `StartParameter.setProjectDir(File)` to specify the directory of the default project instead. This method will be removed in Gradle 8.0.
  org.gradle.testing.jacoco.plugins.JacocoPluginExtension.getReportsDir() |
  org.gradle.testing.jacoco.plugins.JacocoPluginExtension.setReportsDir​(Provider<File>) | See `JacocoPluginExtension.getReportsDirectory()`
  org.gradle.util.GradleVersion.getBuildTime() | will be removed in Gradle 8.
  org.gradle.util.GradleVersion.getNextMajor() | will be removed in Gradle 8.
  org.gradle.util.GradleVersion.getRevision() | will be removed in Gradle 8.
  org.gradle.util.GradleVersion.isValid() | will be removed in Gradle 8.
  org.gradle.util.GUtil.addToCollection​(T, boolean, Iterable<? extends V>...) |
  org.gradle.workers.WorkerExecutor.submit​(Class<? extends Runnable>, Action<? super WorkerConfiguration>) |