Deprecated List (Gradle API 3.5)
Date: 2017-04-10

# Deprecated API

## Contents

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

- Deprecated Interfaces
  Interface and Description
  org.gradle.caching.BuildCache Use `BuildCacheService` instead.
  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 4.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 4.0.
  org.gradle.plugins.javascript.rhino.worker.RhinoWorker
  org.gradle.plugins.javascript.rhino.worker.RhinoWorkerHandleFactory

- Deprecated Classes
  Class and Description
  org.gradle.api.plugins.jetty.AbstractJettyRunTask The Jetty plugin has been deprecated
  org.gradle.api.tasks.compile.DependOptions
  org.gradle.api.plugins.jetty.JettyPlugin The Jetty plugin has been deprecated
  org.gradle.api.plugins.jetty.JettyPluginConvention The Jetty plugin has been deprecated
  org.gradle.api.plugins.jetty.JettyRun The Jetty plugin has been deprecated
  org.gradle.api.plugins.jetty.JettyRunWar The Jetty plugin has been deprecated
  org.gradle.api.plugins.jetty.JettyStop The Jetty plugin has been deprecated
  org.gradle.caching.MapBasedBuildCache Use `MapBasedBuildCacheService` instead.
  org.gradle.plugins.javascript.rhino.worker.RhinoWorkerUtils
  org.gradle.api.plugins.jetty.ScanTargetPattern The Jetty plugin has been deprecated

- Deprecated Annotation Types
  Annotation Type and Description
  org.gradle.api.tasks.OrderSensitive This annotation will be removed in Gradle 4.0. For classpath properties, use `Classpath`.

- 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.tasks.compile.CompileOptions.depend(Map)
  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.TaskOutputs.doNotCacheIf(Spec) Use `TaskOutputs.doNotCacheIf(String, Spec)` to give a reason for not caching.
  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.testing.jacoco.plugins.JacocoTaskExtension.getAgent() Agent should be considered final.
  org.gradle.testing.jacoco.plugins.JacocoTaskExtension.getClassDumpFile()
  org.gradle.api.artifacts.ModuleDependency.getConfiguration() Use `ModuleDependency.getTargetConfiguration()` instead
  org.gradle.api.tasks.compile.JavaCompile.getDependencyCacheDir()
  org.gradle.api.plugins.JavaPluginConvention.getDependencyCacheDir()
  org.gradle.api.plugins.JavaPluginConvention.getDependencyCacheDirName()
  org.gradle.tooling.model.idea.IdeaModuleDependency.getDependencyModule()
  org.gradle.api.tasks.compile.CompileOptions.getDependOptions()
  org.gradle.api.tasks.compile.ForkOptions.getExecutable() Use `ForkOptions.getJavaHome()` instead
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.getFiles() Use `TaskInputs.getFiles()` directly instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.getFiles() Use `TaskOutputs.getFiles()` instead.
  org.gradle.plugins.ide.eclipse.model.ProjectDependency.getGradlePath()
  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.testing.jacoco.plugins.JacocoPluginExtension.getLogger() logger should be considered final.
  org.gradle.api.artifacts.ProjectDependency.getProjectConfiguration() A project dependency may select different configurations.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.getProperties() Use `TaskInputs.getProperties()` directly instead.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.getSourceFiles() Use `TaskInputs.getSourceFiles()` directly instead.
  org.gradle.tooling.model.eclipse.EclipseProjectDependency.getTargetProject()
  org.gradle.StartParameter.isTaskOutputCacheEnabled() Use `StartParameter.isBuildCacheEnabled()`
  org.gradle.api.tasks.compile.CompileOptions.isUseDepend()
  org.gradle.api.Task.leftShift(Closure) Use `Task.doLast(Closure action)`
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.orderSensitive() This method will be removed in Gradle 4.0 without replacement.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.orderSensitive(boolean) This method will be removed in Gradle 4.0 without replacement.
  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.artifacts.FileCollectionDependency.registerWatchPoints(FileSystemSubset.Builder) Use `FileCollectionDependency.getFiles()` instead.
  org.gradle.testing.jacoco.plugins.JacocoTaskExtension.setAgent(JacocoAgentJar) Agent should be considered final.
  org.gradle.testing.jacoco.plugins.JacocoTaskExtension.setClassDumpFile(File)
  org.gradle.api.tasks.compile.JavaCompile.setDependencyCacheDir(File)
  org.gradle.api.plugins.JavaPluginConvention.setDependencyCacheDirName(String)
  org.gradle.api.tasks.compile.CompileOptions.setDependOptions(DependOptions)
  org.gradle.api.tasks.compile.ForkOptions.setExecutable(String) Use `ForkOptions.setJavaHome(File)` instead
  org.gradle.plugins.ide.eclipse.model.ProjectDependency.setGradlePath(String)
  org.gradle.testing.jacoco.plugins.JacocoPluginExtension.setLogger(Logger) logger should be considered final.
  org.gradle.api.tasks.javadoc.Javadoc.setOptions(MinimalJavadocOptions)
  org.gradle.api.plugins.JavaPluginConvention.setProject(ProjectInternal) Project should be considered final.
  org.gradle.StartParameter.setTaskOutputCacheEnabled(boolean) Use `StartParameter.setBuildCacheEnabled(boolean)`
  org.gradle.api.tasks.compile.CompileOptions.setUseDepend(boolean)
  org.gradle.api.tasks.TaskInputs.source(Object...) Use `TaskInputs.files(Object...)` instead and set `skipWhenEmpty` to `true`.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.source(Object...) Use `TaskInputs.source(Object...)` directly instead.
  org.gradle.api.tasks.TaskInputs.source(Object) Use `TaskInputs.file(Object)` instead and set `skipWhenEmpty` to `true`.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.source(Object) Use `TaskInputs.source(Object)` directly instead.
  org.gradle.api.tasks.TaskInputs.sourceDir(Object) Use `TaskInputs.dir(Object)` instead and set `skipWhenEmpty` to `true`.
  org.gradle.api.tasks.TaskInputFilePropertyBuilder.sourceDir(Object) Use `TaskInputs.sourceDir(Object)` directly instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.upToDateWhen(Closure) Use `TaskOutputs.upToDateWhen(Closure)` instead.
  org.gradle.api.tasks.TaskOutputFilePropertyBuilder.upToDateWhen(Spec) Use `TaskOutputs.upToDateWhen(Spec)` instead.
  org.gradle.api.java.archives.Manifest.writeTo(Writer)

- Deprecated Constructors
  Constructor and Description
  org.gradle.plugins.ide.eclipse.model.AccessRule(Object, Object)
  org.gradle.plugins.ear.EarPluginConvention(Instantiator)
  org.gradle.plugins.ide.idea.model.JarDirectory(Object, Object)
  org.gradle.plugins.ide.idea.model.Jdk(Object, Object, Object, Object)
  org.gradle.plugins.ide.idea.model.ModuleDependency(Object, Object)
  org.gradle.plugins.ide.eclipse.model.ProjectDependency(String, String) Use `ProjectDependency.ProjectDependency(String)` instead
  org.gradle.plugins.ide.eclipse.model.WbDependentModule(Object)
  org.gradle.plugins.ide.eclipse.model.WbProperty(Object)
  org.gradle.plugins.ide.eclipse.model.WbResource(Object)