# 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.sonar.runner The 'sonar-runner' been superseded by the official plugin from SonarQube, please see: http://docs.sonarqube.org/display/SONAR/Analyzing+with+Gradle

- Deprecated Interfaces
  Interface and Description
  org.gradle.api.artifacts.ConflictResolution
  org.gradle.api.tasks.ConventionValue Use `Closure` or `Callable` instead.
  org.gradle.api.file.DeleteAction Use `DeleteSpec` or `Delete` instead.
  org.gradle.api.artifacts.Module
  org.gradle.plugins.javascript.rhino.worker.RhinoWorker
  org.gradle.plugins.javascript.rhino.worker.RhinoWorkerHandleFactory
  org.gradle.platform.base.test.TestSuiteBinarySpec Use `TestSuiteBinarySpec` instead.
  org.gradle.platform.base.test.TestSuiteContainer Use `TestSuiteContainer` instead.
  org.gradle.platform.base.test.TestSuiteSpec Use `instead.`

- Deprecated Classes
  Class and Description
  org.gradle.api.tasks.javadoc.AntGroovydoc
  org.gradle.api.tasks.scala.AntScalaDoc
  org.gradle.BuildExceptionReporter
  org.gradle.BuildLogger
  org.gradle.BuildResultLogger
  org.gradle.plugins.ide.eclipse.model.EclipseDomainModel
  org.gradle.plugins.javascript.rhino.worker.RhinoWorkerUtils
  org.gradle.sonar.runner.SonarProperties The 'sonar-runner' plugin has been superseded by the official plugin from SonarQube, please see: http://docs.sonarqube.org/display/SONAR/Analyzing+with+Gradle
  org.gradle.sonar.runner.tasks.SonarRunner The 'sonar-runner' plugin has been superseded by the official plugin from SonarQube, please see: http://docs.sonarqube.org/display/SONAR/Analyzing+with+Gradle
  org.gradle.sonar.runner.SonarRunnerExtension The 'sonar-runner' plugin has been superseded by the official plugin from SonarQube, please see: http://docs.sonarqube.org/display/SONAR/Analyzing+with+Gradle
  org.gradle.sonar.runner.plugins.SonarRunnerPlugin The 'sonar-runner' plugin has been superseded by the official plugin from SonarQube, please see: http://docs.sonarqube.org/display/SONAR/Analyzing+with+Gradle
  org.gradle.sonar.runner.SonarRunnerRootExtension The 'sonar-runner' plugin has been superseded by the official plugin from SonarQube, please see: http://docs.sonarqube.org/display/SONAR/Analyzing+with+Gradle
  org.gradle.TaskExecutionLogger
  org.gradle.api.tasks.bundling.Zip.ZipCopyActionImpl

- Deprecated Annotation Types
  Annotation Type and Description
  org.gradle.platform.base.BinaryType Use `ComponentType` instead.
  org.gradle.platform.base.LanguageType Use `ComponentType` instead.

- Deprecated Fields
  Field and Description
  org.gradle.api.logging.Logging.ANT_IVY_2_SLF4J_LEVEL_MAPPER

- Deprecated Methods
  Method and Description
  org.gradle.api.specs.Specs.and(Collection>) Use `Specs.intersect(Collection)` instead.
  org.gradle.api.specs.Specs.and(Spec...) Use `Specs.intersect(Spec[])` instead.
  org.gradle.testing.jacoco.plugins.JacocoTaskExtension.getAgent() Agent should be considered final.
  org.gradle.api.tasks.testing.testng.TestNGOptions.getAnnotations()
  org.gradle.api.tasks.scala.ScalaCompileOptions.getDaemonServer()
  org.gradle.plugins.ide.eclipse.model.ProjectDependency.getDeclaredConfigurationName()
  org.gradle.plugins.ide.eclipse.model.AbstractLibrary.getDeclaredConfigurationName()
  org.gradle.tooling.model.idea.IdeaModuleDependency.getDependencyModule()
  org.gradle.api.tasks.bundling.Zip.getEncoding() Use `Zip.getMetadataCharset()` instead
  org.gradle.api.tasks.testing.testng.TestNGOptions.getJAVADOC_ANNOTATIONS()
  org.gradle.api.tasks.testing.testng.TestNGOptions.getJavadocAnnotations()
  org.gradle.api.tasks.testing.testng.TestNGOptions.getJDK_ANNOTATIONS()
  org.gradle.testing.jacoco.plugins.JacocoPluginExtension.getLogger() logger should be considered final.
  org.gradle.api.tasks.javadoc.Groovydoc.getOverview() please use `Groovydoc.getOverviewText()` instead
  org.gradle.StartParameter.getParallelThreadCount() Use getMaxWorkerCount or isParallelProjectExecutionEnabled instead.
  org.gradle.tooling.model.Task.getProject() Do not use this method. It is assumed that the caller already has a reference to owning project.
  org.gradle.tooling.model.eclipse.EclipseProjectDependency.getTargetProject()
  org.gradle.api.tasks.testing.testng.TestNGOptions.getTestResources()
  org.gradle.api.tasks.testing.Test.getTestSrcDirs() Support for TestNG Javadoc annotations will be removed in Gradle 3.0
  org.gradle.StartParameter.isColorOutput()
  org.gradle.api.logging.configuration.LoggingConfiguration.isColorOutput() Use `LoggingConfiguration.getConsoleOutput()` instead.
  org.gradle.api.tasks.scala.ScalaCompileOptions.isFork()
  org.gradle.api.tasks.testing.testng.TestNGOptions.isJavadocAnnotations()
  org.gradle.api.tasks.scala.ScalaCompileOptions.isUseAnt()
  org.gradle.api.tasks.scala.ScalaCompileOptions.isUseCompileDaemon()
  org.gradle.api.tasks.testing.testng.TestNGOptions.javadocAnnotations()
  org.gradle.api.tasks.testing.testng.TestNGOptions.jdkAnnotations()
  org.gradle.api.specs.Specs.not(Spec) Use `Specs.negate(Spec)` instead.
  org.gradle.api.specs.Specs.or(boolean, List>) Use `Specs.union(Collection)` instead.
  org.gradle.api.specs.Specs.or(Collection>) Use `Specs.union(Collection)` instead.
  org.gradle.api.specs.Specs.or(Spec...) Use `Specs.union(Spec[])` instead.
  org.gradle.testing.jacoco.plugins.JacocoTaskExtension.setAgent(JacocoAgentJar) Agent should be considered final.
  org.gradle.api.tasks.testing.testng.TestNGOptions.setAnnotationsOnSourceCompatibility(JavaVersion)
  org.gradle.StartParameter.setColorOutput(boolean)
  org.gradle.api.logging.configuration.LoggingConfiguration.setColorOutput(boolean) Use `LoggingConfiguration.setConsoleOutput(ConsoleOutput)` instead.
  org.gradle.api.tasks.scala.ScalaCompileOptions.setDaemonServer(String)
  org.gradle.plugins.ide.eclipse.model.AbstractLibrary.setDeclaredConfigurationName(String)
  org.gradle.api.tasks.bundling.Zip.setEncoding(String) Use `Zip.setMetadataCharset(String)` instead
  org.gradle.api.tasks.scala.ScalaCompileOptions.setFork(boolean)
  org.gradle.api.tasks.testing.testng.TestNGOptions.setJavadocAnnotations(boolean)
  org.gradle.api.logging.LoggingManager.setLevel(LogLevel)
  org.gradle.testing.jacoco.plugins.JacocoPluginExtension.setLogger(Logger) logger should be considered final.
  org.gradle.api.tasks.javadoc.Groovydoc.setOverview(String) please use `Groovydoc.setOverviewText(TextResource)` instead
  org.gradle.StartParameter.setParallelThreadCount(int)
  org.gradle.api.plugins.JavaPluginConvention.setProject(ProjectInternal) Project should be considered final.
  org.gradle.api.tasks.testing.testng.TestNGOptions.setTestResources(List)
  org.gradle.api.tasks.testing.Test.setTestSrcDirs(List)
  org.gradle.api.tasks.scala.ScalaCompileOptions.setUseAnt(boolean)
  org.gradle.api.tasks.scala.ScalaCompileOptions.setUseCompileDaemon(boolean)
  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.WbDependentModule(Object)
  org.gradle.plugins.ide.eclipse.model.WbProperty(Object)
  org.gradle.plugins.ide.eclipse.model.WbResource(Object)