# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Enums
- Deprecated Methods

- Deprecated Interfaces
  Interface and Description
  org.gradle.api.tasks.ConventionValue Use `Closure` or `Callable` instead.
  org.gradle.tooling.model.eclipse.EclipseTask
  org.gradle.api.tasks.testing.TestLogging use `TestLogging` instead

- Deprecated Classes
  Class and Description
  org.gradle.RefreshOptions Use `StartParameter.setRefreshDependencies(boolean)` instead.
  org.gradle.api.plugins.ReportingBasePluginConvention This convention has been deprecated and replaced by `ReportingExtension`

- Deprecated Enums
  Enum and Description
  org.gradle.CacheUsage This enum has been deprecated. Use `StartParameter.isRerunTasks()` and `StartParameter.isRecompileScripts()` instead.

- Deprecated Methods
  Method and Description
  org.gradle.api.plugins.ExtensionContainer.add(String, Class, Object...) use `ExtensionContainer.create(java.lang.String, java.lang.Class<T>, java.lang.Object...)`
  org.gradle.api.artifacts.ArtifactRepositoryContainer.addLast(Object) Use `maven(groovy.lang.Closure)` or `ArtifactRepositoryContainer.add(ArtifactRepository)` instead.
  org.gradle.api.artifacts.ArtifactRepositoryContainer.addLast(Object, Closure) Use `maven(groovy.lang.Closure)` or `ArtifactRepositoryContainer.add(ArtifactRepository)` instead.
  org.gradle.api.Project.childrenDependOnMe() Use `Task.dependsOn(Object...)` instead.
  org.gradle.plugins.binaries.model.CompileSpec.compile() No replacement
  org.gradle.api.Project.dependsOn(String) Use `Task.dependsOn(Object...)` instead.
  org.gradle.api.Project.dependsOn(String, boolean) Use `Task.dependsOn(Object...)` instead.
  org.gradle.api.Project.dependsOnChildren() Use `Task.dependsOn(Object...)` instead.
  org.gradle.api.Project.dependsOnChildren(boolean) To definde task dependencies use `Task.dependsOn(Object...)` instead. For declaring evaluation dependencies to child projects, use evaluation dependencies use `Project.evaluationDependsOnChildren()`.
  org.gradle.api.Project.fileTree(Closure) Use `Project.fileTree(Object,Closure)` instead.
  org.gradle.api.Script.fileTree(Closure) Use `Script.fileTree(Object,Closure)` instead.
  org.gradle.api.plugins.ReportingBasePluginConvention.getApiDocTitle() use `ReportingExtension.getApiDocTitle()`
  org.gradle.StartParameter.getCacheUsage() Use `StartParameter.isRecompileScripts()` and/or `StartParameter.isRerunTasks()` instead.
  org.gradle.api.tasks.compile.CompileOptions.getCompiler() use `CompileOptions.forkOptions.executable` instead
  org.gradle.api.tasks.SourceTask.getDefaultSource() Use getSource() instead.
  org.gradle.api.tasks.AbstractCopyTask.getDefaultSource() Use getSource() instead.
  org.gradle.api.artifacts.ExcludeRule.getExcludeArgs() Use `ExcludeRule.getGroup()` or `ExcludeRule.getModule()` instead.
  org.gradle.api.tasks.bundling.Compression.getExtension() Use `Compression.getDefaultExtension()` instead.
  org.gradle.api.artifacts.UnresolvedDependency.getId()
  org.gradle.plugins.binaries.model.Binary.getProject() No replacement
  org.gradle.StartParameter.getRefreshOptions() Use `StartParameter.isRefreshDependencies()` instead.
  org.gradle.api.plugins.ReportingBasePluginConvention.getReportsDir() use `ReportingExtension.getBaseDir()`
  org.gradle.api.plugins.ReportingBasePluginConvention.getReportsDirName() use `ReportingExtension.getBaseDir()`
  org.gradle.api.artifacts.ResolvedArtifact.getResolvedDependency() An artifact can belong to multiple dependencies. Use `ResolvedArtifact.getModuleVersion()` instead.
  org.gradle.StartParameter.isNoOpt() Use `StartParameter.isRerunTasks()` instead.
  org.gradle.StartParameter.setCacheUsage(CacheUsage) Use `StartParameter.setRecompileScripts(boolean)` and/or `StartParameter.setRerunTasks(boolean)` instead.
  org.gradle.api.tasks.compile.CompileOptions.setCompiler(String) use `CompileOptions.forkOptions.executable instead`
  org.gradle.StartParameter.setNoOpt(boolean) Use `StartParameter.setRefreshDependencies(boolean)` instead.
  org.gradle.StartParameter.setRefreshOptions(RefreshOptions) Use `StartParameter.setRefreshDependencies(boolean)` instead.
  org.gradle.api.plugins.ReportingBasePluginConvention.setReportsDirName(String) use `ReportingExtension.setBaseDir(Object)`
  org.gradle.StartParameter.useEmptySettingsScript() use `StartParameter.useEmptySettings()`