Deprecated API
Contents
-
Deprecated Packages
-
Deprecated InterfacesInterfaceDescriptionUse
DirectoryPropertyinstead.UseRegularFilePropertyinstead.UsePropertyinstead.The interface is only here to allow plugins built against Gradle 2.x to run and it will be removed in Gradle 5.0.The interface is only here to allow plugins built against Gradle 2.x to run and it will be removed in Gradle 5.0.UseCommandLineArgumentProviderdirectly.
-
Deprecated Classes
-
Deprecated Annotation Interfaces
-
Deprecated FieldsFieldDescriptionUsers should prefer
JavaPlugin.API_CONFIGURATION_NAMEorJavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME.Consumers should useJavaPlugin.RUNTIME_ELEMENTS_CONFIGURATION_NAMEinstead.UseJavaPlugin.TEST_RUNTIME_CLASSPATH_CONFIGURATION_NAMEinstead.
-
Deprecated MethodsMethodDescriptionUse
ComponentSelectionReason.getDescriptions()insteadThis method will be removed in Gradle 5.0. Type conversions with the Groovyaskeyword will keep working for the collection types. For other conversions useFileCollection.getSingleFile()andFileCollection.getAsFileTree().UseProjectLayout.directoryProperty()instead.UseProjectLayout.fileProperty()instead.UsePluginManager.apply(Class)instead.UsePluginManager.apply(Class)instead.plugins cannot be removed.plugins cannot be removed.plugins cannot be removed.Replaced byJDepend.getClassesDirs().Replaced byJDepend.getClassesDirs().UseObjectFactory.property(Class)instead.UseObjectFactory.property(Class)instead.UseObjectFactory.property(Class)instead.Don't use this.Build logic should not depend on this information about a task. Instead, declare task inputs and outputs to allow Gradle to optimize task execution.UseCompileOptions.getBootstrapClasspath()instead.UseCompileOptions.setBootstrapClasspath(FileCollection)instead.Scaladoc does not support to set a stylesheet any more (Scala 2.11).Scaladoc does not support to set a stylesheet any more (Scala 2.11).Set the output directory for the particularAbstractCompiletaskSet the output directory for the particularAbstractCompiletaskUseTaskDestroyables.register(Object...)instead.UseTaskDestroyables.register(Object...)instead.UseTaskInputs.dir(Object)directly instead.UseTaskInputs.file(Object)directly instead.UseTaskInputs.files(Object...)directly instead.UseTaskInputs.getFiles()directly instead.UseTaskInputs.getHasInputs()directly instead.UseTaskInputs.getHasSourceFiles()directly instead.UseTaskInputs.getProperties()directly instead.UseTaskInputs.getSourceFiles()directly instead.UseTaskInputs.properties(Map)directly instead.UseTaskInputs.property(String, Object)directly instead.UseTaskInputs.dir(Object)directly instead.UseTaskInputs.file(Object)directly instead.UseTaskInputs.files(Object...)directly instead.UseTaskInputs.getFiles()directly instead.UseTaskInputs.getHasInputs()directly instead.UseTaskInputs.getHasSourceFiles()directly instead.UseTaskInputs.getProperties()directly instead.UseTaskInputs.getSourceFiles()directly instead.UseTaskInputs.properties(Map)directly instead.UseTaskInputs.property(String, Object)directly instead.UseTaskOutputs.dir(Object)instead.UseTaskOutputs.file(Object)instead.UseTaskOutputs.files(Object...)instead.UseTaskOutputs.getFiles()instead.UseTaskOutputs.getHasOutput()instead.UseTaskOutputs.upToDateWhen(Closure)instead.UseTaskOutputs.upToDateWhen(Spec)instead.UseIdeaContentRoot.getSourceDirectories()in combination withIdeaSourceDirectory.isGenerated()instead.UseIdeaContentRoot.getTestDirectories()in combination withIdeaSourceDirectory.isGenerated()instead.
-
Deprecated ConstructorsConstructorDescriptionUse public
ObjectFactoryconstructor instead of this one using internalInstantiator.