# Deprecated API

## Contents

- Deprecated Packages
- Deprecated Interfaces
- Deprecated Classes
- Deprecated Annotation Types
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

- Deprecated Packages
  Package and Description
  org.gradle.api.dsl This package will be removed in Gradle 5.0.

- Deprecated Interfaces
  Interface and Description
  org.gradle.api.tasks.CompatibilityAdapterForTaskInputs The interface is only here to allow plugins built against Gradle 2.x to run and it will be removed in Gradle 5.0.
  org.gradle.api.tasks.CompatibilityAdapterForTaskOutputs The interface is only here to allow plugins built against Gradle 2.x to run and it will be removed in Gradle 5.0.

- Deprecated Classes
  Class and Description
  org.gradle.api.dsl.ConventionProperty This class will be removed in Gradle 5.0.

- Deprecated Annotation Types
  Annotation Type and Description
  org.gradle.api.Nullable Use `Nullable` instead.

- Deprecated Fields
  Field and Description
  org.gradle.api.plugins.JavaPlugin.COMPILE_CONFIGURATION_NAME Users should prefer `JavaPlugin.API_CONFIGURATION_NAME` or `JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME`.
  org.gradle.api.plugins.JavaPlugin.RUNTIME_CONFIGURATION_NAME Consumers should use `JavaPlugin.RUNTIME_ELEMENTS_CONFIGURATION_NAME` instead.
  org.gradle.api.plugins.JavaPlugin.TEST_RUNTIME_CONFIGURATION_NAME Use `JavaPlugin.TEST_RUNTIME_CLASSPATH_CONFIGURATION_NAME` instead.

- Deprecated Methods
  Method and Description
  org.gradle.api.plugins.JavaBasePlugin.configureForSourceSet(SourceSet, AbstractCompile)
  org.gradle.api.Task.dependsOnTaskDidWork() Build logic should not depend on this information about a task. Instead, declare task inputs and outputs to allow Gradle to optimize task execution.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.dir(Object) Use `TaskInputs.dir(Object)` directly instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.dir(Object) Use `TaskOutputs.dir(Object)` instead.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.file(Object) Use `TaskInputs.file(Object)` directly instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.file(Object) Use `TaskOutputs.file(Object)` instead.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.files(Object...) Use `TaskInputs.files(Object...)` directly instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.files(Object...) Use `TaskOutputs.files(Object...)` instead.
  org.gradle.api.plugins.quality.JDepend.getClassesDir() Replaced by `JDepend.getClassesDirs()`.
  org.gradle.api.tasks.SourceSetOutput.getClassesDir() Use `SourceSetOutput.getClassesDirs()` or `SourceDirectorySet.getOutputDir()`
  org.gradle.tooling.model.idea.IdeaModuleDependency.getDependencyModule()
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.getFiles() Use `TaskInputs.getFiles()` directly instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.getFiles() Use `TaskOutputs.getFiles()` instead.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.getHasInputs() Use `TaskInputs.getHasInputs()` directly instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.getHasOutput() Use `TaskOutputs.getHasOutput()` instead.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.getHasSourceFiles() Use `TaskInputs.getHasSourceFiles()` directly instead.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.getProperties() Use `TaskInputs.getProperties()` directly instead.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.getSourceFiles() Use `TaskInputs.getSourceFiles()` directly instead.
  org.gradle.api.tasks.scala.ScalaDocOptions.getStyleSheet() Scaladoc does not support to set a stylesheet any more (Scala 2.11).
  org.gradle.tooling.model.eclipse.EclipseProjectDependency.getTargetProject()
  org.gradle.api.tasks.testing.Test.getTestClassesDir() Use `Test.getTestClassesDirs()`.
  org.gradle.StartParameter.isTaskOutputCacheEnabled() Use `StartParameter.isBuildCacheEnabled()`
  org.gradle.api.Task.leftShift(Closure) Use `Task.doLast(Closure action)`
  org.gradle.plugins.ide.idea.IdeaPlugin.performPostEvaluationActions()
  org.gradle.plugins.ide.eclipse.EclipsePlugin.performPostEvaluationActions()
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.properties(Map) Use `TaskInputs.properties(Map)` directly instead.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.property(String, Object) Use `TaskInputs.property(String, Object)` directly instead.
  org.gradle.api.plugins.quality.JDepend.setClassesDir(File) Replaced by `JDepend.getClassesDirs()`.
  org.gradle.api.tasks.SourceSetOutput.setClassesDir(File) Set the output directory for the particular `AbstractCompile` task
  org.gradle.api.tasks.SourceSetOutput.setClassesDir(Object) Set the output directory for the particular `AbstractCompile` task
  org.gradle.api.reporting.ConfigurableReport.setDestination(Object) Replaced by `ConfigurableReport.setDestination(java.io.File)` and `ConfigurableReport.setDestination(org.gradle.api.provider.Provider)`.
  org.gradle.api.tasks.scala.ScalaDocOptions.setStyleSheet(File) Scaladoc does not support to set a stylesheet any more (Scala 2.11).
  org.gradle.StartParameter.setTaskOutputCacheEnabled(boolean) Use `StartParameter.setBuildCacheEnabled(boolean)`
  org.gradle.api.tasks.testing.Test.setTestClassesDir(File) Use `Test.setTestClassesDirs(FileCollection)`.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.upToDateWhen(Closure) Use `TaskOutputs.upToDateWhen(Closure)` instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.upToDateWhen(Spec) Use `TaskOutputs.upToDateWhen(Spec)` instead.

- Deprecated Constructors
  Constructor and Description
  org.gradle.plugins.ear.EarPluginConvention(FileResolver, Instantiator) Use public `ObjectFactory` constructor instead of this one using internal `Instantiator`.